Hello,
I am struggling with what I’d like to do: I’d like my level 2 headings to display “Chapter x” before the heading body. And I manage to do so.
But I’d like to be able not to display “Chapter x” on un unnumbered heading of the same level, I mean:
#heading(level: 2, numbering: none)[No number title]
For now, if I do so, I still have “Chapter x”, where x is the number of the previous numbered heading. Here is my current code:
show heading.where(level: 2): set text(size: 24pt, weight: "bold")
show heading.where(level: 2): set block(above: 0em, below: 0em)
show heading.where(level: 2): it => {
block(above: 2em, below: 1.2em)[
#if heading.numbering != none [
#block(above: 1.5em, below: 0.6em)[
#set text(size: 14pt, weight: "bold")
Chapter #counter(heading).display(
(.., last) => last
)
]
]
#it.body
]
}
Thank you very much.