From f55dbd5971aa4f6e5da6d846de5395e56e3e28b3 Mon Sep 17 00:00:00 2001 From: aragami3070 Date: Sun, 2 Mar 2025 19:58:40 +0400 Subject: Fix: indentation again Ah shit, here we go again))))) --- conf.typ | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'conf.typ') diff --git a/conf.typ b/conf.typ index 386f77b..961c1b1 100644 --- a/conf.typ +++ b/conf.typ @@ -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) @@ -415,9 +415,11 @@ show heading: self.document.apply_heading_styles - // Выравнивание по ширине set par( - justify: true + // Выравнивание по ширине + justify: true, + // отвечает за красные строки там, где их нет, но они должны быть + first-line-indent: (amount: indent, all: true), ) // Вывод содержания @@ -438,19 +440,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 }, -- cgit v1.2.3 From b355b3832f59bea9698bcb34709c4c81f1d753e6 Mon Sep 17 00:00:00 2001 From: aragami3070 Date: Sun, 2 Mar 2025 19:59:04 +0400 Subject: Fix: 0.13 typst update --- conf.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf.typ') diff --git a/conf.typ b/conf.typ index 961c1b1..a872df9 100644 --- a/conf.typ +++ b/conf.typ @@ -375,7 +375,7 @@ 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 } -- cgit v1.2.3 From c1aee8050099802c4038ad6a95a03420bfe25f7c Mon Sep 17 00:00:00 2001 From: aragami3070 Date: Sun, 2 Mar 2025 20:07:06 +0400 Subject: Fix: table of contents after 0.13 typst update --- conf.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf.typ') diff --git a/conf.typ b/conf.typ index a872df9..dc216f5 100644 --- a/conf.typ +++ b/conf.typ @@ -377,7 +377,7 @@ inset: 0pt, heading, none, it.fill, none, it.page() ) - v(-28pt) // TODO разобраться, откуда такой отступ после grid + v(1pt) // TODO разобраться, откуда такой отступ после grid } outline(indent: 2%, title: [Содержание]) }, -- cgit v1.2.3 From d0ae4500d106f915529e6e6847ee2395eac6cb18 Mon Sep 17 00:00:00 2001 From: aragami3070 Date: Sun, 2 Mar 2025 20:20:18 +0400 Subject: Add: TODO comment --- conf.typ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'conf.typ') diff --git a/conf.typ b/conf.typ index dc216f5..a08def6 100644 --- a/conf.typ +++ b/conf.typ @@ -377,7 +377,8 @@ inset: 0pt, heading, none, it.fill, none, it.page() ) - v(1pt) // TODO разобраться, откуда такой отступ после grid + // TODO: поиграться с числами (отступ в содержании таких строчек, как Введение и тп) + v(1pt) } outline(indent: 2%, title: [Содержание]) }, -- cgit v1.2.3 From 2339993d0438495c0961432a334a3bdff8b4e1f5 Mon Sep 17 00:00:00 2001 From: aragami3070 Date: Sun, 2 Mar 2025 20:22:37 +0400 Subject: Fix: spacing in table of contents --- conf.typ | 2 -- 1 file changed, 2 deletions(-) (limited to 'conf.typ') diff --git a/conf.typ b/conf.typ index a08def6..2f1b7ea 100644 --- a/conf.typ +++ b/conf.typ @@ -377,8 +377,6 @@ inset: 0pt, heading, none, it.fill, none, it.page() ) - // TODO: поиграться с числами (отступ в содержании таких строчек, как Введение и тп) - v(1pt) } outline(indent: 2%, title: [Содержание]) }, -- cgit v1.2.3