mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
- 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
21 lines
261 B
XML
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
|