From 3dc83ce48cd5adcdc230adecc00d2aa06bf5c8a6 Mon Sep 17 00:00:00 2001 From: Cyprien de Saint Guilhem Date: Tue, 27 Oct 2026 11:49:01 +0100 Subject: [PATCH] Add basic link to contents as default page header --- spec/meta.typ | 1 + spec/spec.typ | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/meta.typ b/spec/meta.typ index fcd49fa2f..f638aa995 100644 --- a/spec/meta.typ +++ b/spec/meta.typ @@ -126,6 +126,7 @@ } #let common-formatting(body) = { + set page(header: [#link(, underline([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)]