From 9025ac1446e05446f75df003543e5bd63df76735 Mon Sep 17 00:00:00 2001 From: Fletcher Porter Date: Wed, 10 Sep 2025 08:52:41 +0300 Subject: [PATCH] Don't number `note-outline` heading This changes the default behavior of `note-outline` so that it doesn't number the heading it generates. The heading shouldn't be numbered by default because typically this notes section isn't a part of the final published document and would change the numbers of sections that are, which can cause mistakes, e.g. writing the literal "Section 6" instead of "Section 5". Closes https://github.com/ntjess/typst-drafting/issues/36 --- drafting.typ | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drafting.typ b/drafting.typ index f48f298..4d44e43 100644 --- a/drafting.typ +++ b/drafting.typ @@ -395,8 +395,14 @@ level: 1, /// Spacing between outline elements -> relative row-gutter: 10pt, + /// Whether the outline heading should receive a number + number-heading: false, ) = context { - heading(level: level, title) + heading( + level: level, + numbering: if number-heading { none } else { heading.numbering }, + title, + ) let notes = query(selector().or()).map(note => { show: box // do not break entries across pages