From a33bf8c2a1f049acaf5a6ee78cba3185c9c4deca Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Thu, 23 Apr 2026 14:34:26 +0200 Subject: [PATCH 1/2] spec: Enable heading numbering for section references in shiroa --- spec/book.typ | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/book.typ b/spec/book.typ index 5bf498b49..57363ee23 100644 --- a/spec/book.typ +++ b/spec/book.typ @@ -145,7 +145,7 @@ } else { rf.supplement } - [#supplement#numbering(fig.numbering, ..counter.at(lbl))] + [#supplement #numbering(fig.numbering, ..counter.at(lbl))] } cross-link("/" + ch, reference: shiroa-label, link-content) } @@ -183,6 +183,11 @@ xref-include(key) }).join() #metadata(json("interaction_count.json").sum(default: (:))) + + #let chapter-index = meta_sections.position(x => x.at(0) == file) + 1 + #set heading(numbering: (..args) => [#chapter-index.#numbering("1.1", ..args)]) + #counter(heading).update(0) + #body ]) } From 5c81ee1c8bda466fb5fbc8c9ccf5da33ff195383 Mon Sep 17 00:00:00 2001 From: Robin Jadoul Date: Thu, 23 Apr 2026 14:48:09 +0200 Subject: [PATCH 2/2] Remove explicit heading numbering from logup chapter --- spec/logup.typ | 1 - 1 file changed, 1 deletion(-) diff --git a/spec/logup.typ b/spec/logup.typ index 7bb9a085d..038d67a8c 100644 --- a/spec/logup.typ +++ b/spec/logup.typ @@ -1,7 +1,6 @@ #import "/book.typ": book-page, aside, cdsg #show: book-page("logup") -#set heading(numbering: "1.") #show link: underline #show "constraint choice": link()[constraint choice]