diff --git a/spec/meta.typ b/spec/meta.typ index fcd49fa2f..f732de1b7 100644 --- a/spec/meta.typ +++ b/spec/meta.typ @@ -126,6 +126,22 @@ } #let common-formatting(body) = { + let PAGE_MARGINS = 25mm // Typst's default for A4 paper + set page( + paper: "a4", + margin: PAGE_MARGINS, + header-ascent: 50%, + header: [#pad( + left: -0.5 * PAGE_MARGINS, + link( + , + text( + size: 0.8em, + underline([Back to Contents]), + ), + ), + )], + ) set footnote(numbering: "[1]") show raw.where(block: true): it => block(it, inset: 1em, width: 100%, radius: 5pt) show math.equation.where(block: false): box // Don't line-break inline equations by default diff --git a/spec/spec.typ b/spec/spec.typ index aa0a06438..8da97a2fe 100644 --- a/spec/spec.typ +++ b/spec/spec.typ @@ -18,7 +18,7 @@ v(10pt, weak: true) it } -#outline(depth: 3) +#outline(depth: 3) // chapter pages #show heading.where(level: 1): it => align(center + horizon)[#underline(it, offset: 10pt, extent: 5pt)]