typst/tests/typ/layout/pagebreak.typ
2021-06-29 13:49:50 +02:00

24 lines
365 B
XML

// Test forced page breaks.
---
First of two
#pagebreak()
#page!(height: 40pt)
---
// Make sure that you can't do page related stuff in a container.
A
#box[
B
// Error: 16 cannot modify page from here
#pagebreak()
// Error: 12-16 cannot modify page from here
#page!("a4")
]
C
// No consequences from the page("A4") call here.
#pagebreak()
D