typst/tests/typ/layout/pagebreak.typ
2022-02-07 20:00:21 +01:00

24 lines
538 B
Typst

// Test forced page breaks.
---
// Just a pagebreak.
// Should result in two auto-sized pages.
#pagebreak()
---
// Pagebreak, empty with styles and then pagebreak
// Should result in one auto-sized page and two conifer-colored A11 pages.
#pagebreak()
#set page(width: 2cm, fill: conifer)
#pagebreak()
---
// Test a combination of pagebreaks, styled pages and pages with bodies.
#set page(width: 80pt, height: 30pt)
[#set page(width: 60pt); First]
#pagebreak()
#pagebreak()
Third
#page(height: 20pt, fill: forest)[]
Fif[#set page();th]