diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-24 21:58:45 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-24 21:58:45 +0200 |
| commit | 7163b4a6c57c99fda085bf9b364c82bdba8ea698 (patch) | |
| tree | 935d953e3019b602e814e882bdedf6fe6b72dbda /tests | |
| parent | 2f33ad0e0aa3d1f4a949025597bf1ea36256831f (diff) | |
Soft pagebreak
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/pagebreak.png | bin | 2115 -> 8640 bytes | |||
| -rw-r--r-- | tests/typ/layout/pagebreak.typ | 26 |
2 files changed, 24 insertions, 2 deletions
diff --git a/tests/ref/layout/pagebreak.png b/tests/ref/layout/pagebreak.png Binary files differindex 293e1b06..741ed50f 100644 --- a/tests/ref/layout/pagebreak.png +++ b/tests/ref/layout/pagebreak.png diff --git a/tests/typ/layout/pagebreak.typ b/tests/typ/layout/pagebreak.typ index 005ca244..df3b0423 100644 --- a/tests/typ/layout/pagebreak.typ +++ b/tests/typ/layout/pagebreak.typ @@ -2,18 +2,29 @@ --- // Just a pagebreak. -// Should result in two auto-sized pages. +// Should result in two pages. #pagebreak() --- // Pagebreak, empty with styles and then pagebreak -// Should result in one auto-sized page and two conifer-colored A11 pages. +// Should result in one auto-sized page and two conifer-colored 2cm wide pages. #pagebreak() #set page(width: 2cm, fill: conifer) #pagebreak() --- +// Two text bodies separated with and surrounded by soft pagebreaks. +// Should result in two aqua-colored pages. +#set page(fill: aqua) +#pagebreak(soft: true) +First +#pagebreak(soft: true) +Second +#pagebreak(soft: true) + +--- // Test a combination of pagebreaks, styled pages and pages with bodies. +// Should result in three five pages, with the fourth one being forest-colored. #set page(width: 80pt, height: 30pt) [#set page(width: 60pt); First] #pagebreak() @@ -21,3 +32,14 @@ Third #page(height: 20pt, fill: forest)[] Fif[#set page();th] + +--- +// Test hard and soft pagebreak followed by page with body. +// Should result in three navy-colored pages. +#set page(fill: navy) +#set text(fill: white) +First +#pagebreak() +#page[Second] +#pagebreak(soft: true) +#page[Third] |
