diff options
| author | aragami3070 <163641422+aragami3070@users.noreply.github.com> | 2025-03-02 20:23:20 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-02 20:23:20 +0400 |
| commit | c419a0ae6f2953b1f03670b7d9fcd0bedd2b4238 (patch) | |
| tree | 369f24f4eb2096d12549423293ba50e502388857 | |
| parent | e775bec932179f54f00733c3da205ad9357d9b79 (diff) | |
| parent | 2339993d0438495c0961432a334a3bdff8b4e1f5 (diff) | |
Merge pull request #22 from danilasar/aragami3070/FixIndentAgain
Aragami3070/fix indent again and 0.13 typst update
| -rw-r--r-- | conf.typ | 24 | ||||
| -rw-r--r-- | test.typ | 2 |
2 files changed, 8 insertions, 18 deletions
@@ -194,7 +194,7 @@ _default_header: () => { set align(center) - set text(font: "Tempora") + // set text(font: "Tempora") text(strings.title.minobrnauki) v(0.2em) text(weight: "bold", strings.title.sgu) @@ -375,9 +375,8 @@ row-gutter: 0pt, rows: (auto), inset: 0pt, - heading, none, it.fill, none, it.page + heading, none, it.fill, none, it.page() ) - v(-28pt) // TODO разобраться, откуда такой отступ после grid } outline(indent: 2%, title: [Содержание]) }, @@ -415,9 +414,11 @@ show heading: self.document.apply_heading_styles - // Выравнивание по ширине set par( - justify: true + // Выравнивание по ширине + justify: true, + // отвечает за красные строки там, где их нет, но они должны быть + first-line-indent: (amount: indent, all: true), ) // Вывод содержания @@ -438,19 +439,6 @@ set figure(supplement: "Рис.") set quote(block: true) - // todo проверить надёжность - // отвечает за красные строки там, где их нет, но они должны быть - show heading: it => { - it - "" - context v(-par.spacing - measure("").height) - } - show selector.or(heading, table, grid, figure): it => { - it - "" - context v(-par.spacing - measure("").height) - } - // Вывод самого документа doc }, @@ -63,7 +63,9 @@ #quote(attribution: [Даня])[Если я прямо на паре начну изучать новый вариант русской раскладки, пожалею ли я об этом?] += Заключение +Пример заключения /*= Введение Абоба |