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 ]) } 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]