style(templates): increase list spacing for readability

Raise list/enum spacing to be ≥ leading line height across default
and manual templates, improving visual separation between items.
This commit is contained in:
Zhengshou Lai
2026-05-08 13:53:24 +08:00
parent 4cb1419720
commit 9eafd7577f
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -86,8 +86,9 @@
// Body rhythm: spacing > leading; first-line indent = Typst default (none) // Body rhythm: spacing > leading; first-line indent = Typst default (none)
set par(justify: true, leading: 0.78em, spacing: 1.12em) set par(justify: true, leading: 0.78em, spacing: 1.12em)
set list(indent: 1.2em, body-indent: 0.45em, spacing: 0.62em) // List rhythm: spacing ≥ leading (0.78em), looser than line height for readability
set enum(indent: 1.2em, body-indent: 0.45em, spacing: 0.62em) set list(indent: 1.2em, body-indent: 0.45em, spacing: 0.90em)
set enum(indent: 1.2em, body-indent: 0.45em, spacing: 0.90em)
// Headings: slightly tighter than long-form (manual/textbook) because H1 is 16pt here // Headings: slightly tighter than long-form (manual/textbook) because H1 is 16pt here
show heading.where(level: 1): it => { show heading.where(level: 1): it => {
+3 -2
View File
@@ -100,8 +100,9 @@
number-align: right, number-align: right,
) )
set list(tight: true, indent: 1.2em, body-indent: 0.45em, spacing: 0.52em) // Tight list: spacing close to leading (0.76em) but not below it
set enum(tight: true, indent: 1.2em, body-indent: 0.45em, spacing: 0.52em) set list(tight: true, indent: 1.2em, body-indent: 0.45em, spacing: 0.72em)
set enum(tight: true, indent: 1.2em, body-indent: 0.45em, spacing: 0.72em)
// Same heading vertical scale as textbook (long-form); H sizes differ by template // Same heading vertical scale as textbook (long-form); H sizes differ by template
show heading.where(level: 1): it => { show heading.where(level: 1): it => {