typst/tests/typ/layout/pagebreak.typ
2021-06-10 16:46:01 +02:00

24 lines
360 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 shape.
A
#rect[
B
// Error: 16 cannot modify page from here
#pagebreak()
// Error: 11-15 cannot modify page from here
#page("a4")
]
C
// No consequences from the page("A4") call here.
#pagebreak()
D