mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
24 lines
366 B
XML
24 lines
366 B
XML
// Test the `pagebreak` function.
|
|
|
|
---
|
|
First of two
|
|
#pagebreak()
|
|
#page(height: 40pt)
|
|
|
|
---
|
|
// Make sure that you can't do page related stuff in a shape.
|
|
A
|
|
#rect[
|
|
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
|