Hi,
I was just working on my thesis and saw that my List of X are not numbered.
They use the standard approach of
#outline(
title: [List of Figures],
target: figure.where(kind: image),
)
#outline(
title: [List of Tables],
target: figure.where(kind: table),
)
#outline(
title: [List of Equations],
target: math.equation,
)
With:
set heading(numbering: "1.1")
or:
// Heading setup
#let docHeadingSetup(body) = {
// show heading.where(level: 5): it =>[#block(it.body)]
set heading(numbering: "1.1")
// Heading font size
show heading.where(level: 1): set text(size: 24pt)
show heading.where(level: 2): set text(size: 20pt)
show heading.where(level: 3): set text(size: 16pt)
show heading.where(level: 4): set text(size: 14pt)
show heading.where(level: 5): set text(size: 12pt)
// Heading spacing before and after
show heading.where(level: 1): set block(below: 24pt, above: 36pt)
show heading.where(level: 2): set block(below: 16pt, above: 30pt)
show heading.where(level: 3): set block(below: 16pt, above: 24pt)
show heading.where(level: 4): set block(below: 14pt, above: 20pt)
show heading.where(level: 5): set block(below: 12pt, above: 18pt)
// pagebreak for level 1 headings
show heading.where(level: 1): it => { pagebreak(); it }
// reset numbering of equations and figures
// from: https://forum.typst.app/t/wrong-numbering-for-the-equation/1403
show heading.where(level: 1): it => {
counter(math.equation).update(0)
counter(figure.where(kind: image)).update(0)
counter(figure.where(kind: table)).update(0)
counter(figure.where(kind: raw)).update(0)
// + any custom figure kinds you use in your document
it
}
body
}
… if you want the full version, but it does not seem to matter, I could not figure out how to get the custom outlines to have a heading number. I do not want for the normal #outline() to have numbering, but the List of X to have numbering. This is the University’s style guide…
If someone can help me with I would be grateful, I could not find a way from the documentation for outline and I seem to be the only one online who needs a numbered LOT/LOF/LOE
Regards