TypstDocumentation

pagebreakElement
Question mark

A manual page break.

Must not be used inside any containers.

Example

The next page contains
more details on compound theory.
#pagebreak()

== Compound Theory
In 1984, the first ...
Preview Preview

Parameters
Question mark

pagebreak() -> content

weak
bool
Settable
Question mark

If true, the page break is skipped if the current page is already empty.

Default: false

to
none or str
Settable
Question mark

If given, ensures that the next page will be an even/odd page, with an empty page in between if necessary.

VariantDetails
"even"

Next page will be an even page.

"odd"

Next page will be an odd page.

Default: none

View example
#set page(height: 30pt)

First.
#pagebreak(to: "odd")
Third.
Preview Preview Preview