diff options
Diffstat (limited to 'tests/typ/func-page.typ')
| -rw-r--r-- | tests/typ/func-page.typ | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/tests/typ/func-page.typ b/tests/typ/func-page.typ index 465a3469..49671e14 100644 --- a/tests/typ/func-page.typ +++ b/tests/typ/func-page.typ @@ -1,28 +1,36 @@ // Test configuring page sizes and margins. -// Set width. -[page width: 50pt][High] - -// Set height. -[page height: 50pt][Wide] +// Set width and height. +[page width: 120pt, height: 120pt] +[page width: 40pt][High] +[page height: 40pt][Wide] // Set all margins at once. -[page margins: 40pt][ +[page margins: 30pt][ [align top, left][TL] [align bottom, right][BR] ] // Set individual margins. +[page height: 40pt] [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] +[page margins: 0pt, left: 20pt][Overriden] + +--- +// Test flipping. + +// Flipped predefined paper. +[page "a11", flip: true][Flipped A11] -// Flip the page. -[page "a10", flip: true][Flipped] +// Flipped custom page size. +[page width: 40pt, height: 120pt] +[page flip: true] +Wide --- // Test a combination of pages with bodies and normal content. @@ -40,7 +48,7 @@ Sixth --- // Test changing the layouting directions of pages. -[page main-dir: btt, cross-dir: rtl] +[page height: 50pt, main-dir: btt, cross-dir: rtl] Right to left! |
