This typst packages allows you to simply mark the end and start of your front matter and back matter to change style and value of your page number without manually setting and keeping track of inner and outer page counters.
#import "@preview/anti-matter:0.1.1": anti-matter, fence, set-numbering
#set page("a4", height: auto)
#show heading.where(level: 1): it => pagebreak(weak: true) + it
#show: anti-matter
#set-numbering(none)
#align(center)[My Title Page]
#pagebreak()
#set-numbering("I")
#include "front-matter.typ"
#fence()
#include "chapters.typ"
#fence()
#include "back-matter.typ"
- Marking the start and end of front/back matter.
- Specifying the numbering styles for each part fo the document
- Why are the pages not correctly counted?
- If you are setting your own page header, you must use
step
, see section II in the manual.
- If you are setting your own page header, you must use
- Why is my outline not displaying the correct numbering?
- If you configure your own
outline.entry
, you must usepage-number
, see section II in the manual.
- If you configure your own
- Why does my front/inner/back matter numbering start on the wrong page?
- The fences must be on the last page of their respective part, if you have a
pagebreak
forcing them on the next page it will also incorrectly label that page. - Otherwise please open an issue with a minimal reproducible example.
- The fences must be on the last page of their respective part, if you have a
The package name anti-matter
was choosen as a word play on front/back matter.
- front matter - The first part of a thesis or book (intro, outline, etc.)
- back matter - The last part of a thesis or book (bibliography, listings, acknowledgements, etc.)