typst/tests/typ/func-page-metrics.typ
Laurenz ba3d43f7b2 Refresh function call and dictionary syntax
- No colon between function name and arguments, just whitespace
- "Named" arguments (previously "keyword" arguments) use colon instead of equals sign
2020-12-27 20:45:20 +01:00

26 lines
572 B
XML

// Test configuring page sizes and margins.
// Set width.
[page width: 50pt][High]
// Set height.
[page height: 50pt][Wide]
// Set all margins at once.
[page margins: 40pt][
[align top, left][TL]
[align bottom, right][BR]
]
// Set individual margins.
[page left: 0pt | align left][Left]
[page right: 0pt | align right][Right]
[page top: 0pt | align top][Top]
[page bottom: 0pt | align bottom][Bottom]
// Ensure that specific margins override general margins.
[page margins: 0pt, left: 40pt][Overriden]
// Flip the page.
[page a10, flip: true][Flipped]