typst/tests/typ/layout/pagebreak.typ
Laurenz 594809e35b Library functions behave more imperatively
- Templates scope state changes
- State-modifying function operate in place instead of returning a template
- Internal template representation contains actual owned nodes instead of a pointer to a syntax tree + an expression map
- No more wide calls
2021-08-17 22:20:37 +02:00

21 lines
261 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
#pagebreak()
#page("a4")
]
C
// No consequences from the page("A4") call here.
#pagebreak()
D