Discord transcript
PgSuper:fire: — 1/6/2026 5:32 PM
if it.numbering != none { ... }
saffronner — 1/6/2026 5:32 PM
d’oh
smhmh
wonder why the outline inner code apparently produces no numbering though… doesn’t matter too much now
PgSuper:fire: — 1/6/2026 5:33 PM
look above it…
saffronner — 1/6/2026 5:34 PM
ahhhh, my mental model said outline somehow called the heading function to generate headings and their numberings, but i guess not?
PgSuper:fire: — 1/6/2026 5:35 PM
?r
#set heading(numbering: "1.")
#show heading: set text(red)
#outline()
= asdf
= sadf
= asd
Typst-RendererAPP — 1/6/2026 5:35 PM
-
PgSuper:fire: — 1/6/2026 5:35 PM
that should clarify
:p
saffronner — 1/6/2026 5:35 PM
hey lookit that :p
thx
PgSuper:fire: — 1/6/2026 5:36 PM
it only uses the heading function for the word “contents” (the title)
cuz like , if it used headings to create the heading outline, the outline would be infinite
haha
okay but despite that, semantically it doesnt make much sense anyways, you dont have any section titles in your outline
but it uses outline.entry
so , if you want to modify the outline, you can use that
for example, to add some cool colored blocks on level 1 outline entries
with outline.entry.where(level: 1)
ive done this on my own template because fancy colored blocks are, well, fancy
?r
#set heading(numbering: "1.")
#show heading: set text(red)
#show outline.entry.where(level: 1): set text(white, weight: "bold")
#show outline.entry.where(level: 1): block.with(fill: red, inset: 5pt)
#outline()
= asdf
== sadf
= asd
== sadf
Typst-RendererAPP — 1/6/2026 5:38 PM