diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-22 14:30:43 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-29 16:47:35 +0100 |
| commit | ed50661378f356e02c6ec943bc4840091d33cfbd (patch) | |
| tree | 7ed51339ea1a4b7ccc4308c902b36e86f9c07e26 /tests/typ/layout | |
| parent | cef46e6c40fed0089a20e44ff2f251c06878891c (diff) | |
Castable optional and smart values
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/page.typ | 20 | ||||
| -rw-r--r-- | tests/typ/layout/pagebreak.typ | 14 |
2 files changed, 18 insertions, 16 deletions
diff --git a/tests/typ/layout/page.typ b/tests/typ/layout/page.typ index 9bb3097d..1f707327 100644 --- a/tests/typ/layout/page.typ +++ b/tests/typ/layout/page.typ @@ -27,20 +27,8 @@ [#page(paper: "a11", flip: true) Flipped A11] --- -// Test a combination of pages with bodies and normal content. - -#page(width: 80pt, height: 30pt) - -[#page() First] -[#page() Second] -#pagebreak() -#pagebreak() -Fourth -[#page(height: 25pt)] -Sixth -[#page() Seventh] - ---- #page(width: 80pt, height: 40pt, fill: eastern) -#font(15pt, "Roboto", fill: white, smallcaps: true) -Typst +#font(15pt, "Roboto", fill: white, smallcaps: true)[Typst] + +#page(width: 40pt, fill: none, margins: auto, top: 10pt) +Hi diff --git a/tests/typ/layout/pagebreak.typ b/tests/typ/layout/pagebreak.typ index ab591c87..f9a935bc 100644 --- a/tests/typ/layout/pagebreak.typ +++ b/tests/typ/layout/pagebreak.typ @@ -18,3 +18,17 @@ C // No consequences from the page("A4") call here. #pagebreak() D + +--- +// Test a combination of pages with bodies and normal content. + +#page(width: 80pt, height: 30pt) + +[#page() First] +[#page() Second] +#pagebreak() +#pagebreak() +Fourth +[#page(height: 25pt)] +Sixth +[#page() Seventh] |
