typst/tests/typ/layout/pagebreak.typ
2021-06-26 15:47:37 +02:00

24 lines
363 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: 11-15 cannot modify page from here
#page("a4")
]
C
// No consequences from the page("A4") call here.
#pagebreak()
D