typst/tests/typ/layout/pagebreak.typ
2021-12-15 11:12:38 +01:00

36 lines
511 B
XML

// Test forced page breaks.
---
First of two
#pagebreak()
#page(height: 40pt)
Second of two
---
// Make sure that you can't do page related stuff in a container.
A
#box[
B
#pagebreak()
#page("a4")
]
C
// No consequences from the page("A4") call here.
#pagebreak()
D
---
// Test a combination of pages with bodies and normal content.
#page(width: 80pt, height: 30pt)
Fi[#page(width: 80pt)rst]
[#page(width: 70pt) Second]
#pagebreak()
#pagebreak()
Fourth
#page(height: 20pt)[]
Sixth
[#page() Seventh]