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:
@@ -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 => {
|
||||||
|
|||||||
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user