How do I make my top-level headings "Chapters", not "Sections"

Let’s say I have this:

#set heading(numbering: "1.")

/ @discussion: We will have a discussion.

= Discussion <discussion>

The way this renders is:

Section 1 We will have a discussion.

1. Discussion

As you can see, Typst thinks my first-level headings are sections, not chapters.

heading.supplement will sort of work, but it will also turn lower level headings to chapters as well.

#set heading(numbering: "1.", supplement: [Chapter])

/ @discussion: We will have a discussion.

= Discussion <discussion>
Discussion will continue in @sub.

== Subtopic <sub>

The way this renders is:

Chapter 1 We will have a discussion.

1. Discussion

Discussion will continue in Chapter 1.1.

1.1 Subtopic

As you can see, now everything is a chapter.

How do I convince Typst to treat only my top-level headers as chapters?

Found it! You can do it with #show rules:

#show heading.where(level: 1): set heading(supplement: [Chapter])
2 Likes

Glad that you solved the problem yourself.
You can mark your own reply as the :white_check_mark: Solution, so that others will know the problem has been solved.

1 Like