oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/incremental/pagebreak_parity.typ
1.1 KiB, 1 run
created by r1870400018:67959, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | // Page breaks with parity: a section that must start on an odd page and one on an even page, so that a blank page is |
| 2 | // left or not according to how many pages the section before takes. |
| 3 | #set page(width: 220pt, height: 130pt, margin: 16pt, numbering: "1", |
| 4 | footer: context [Page #counter(page).display() of #counter(page).final().first()]) |
| 5 | #set text(size: 9pt) |
| 6 | |
| 7 | The first section sits on the first page and runs on for a few lines, long enough to matter but short enough to leave room. |
| 8 | |
| 9 | It has a second short paragraph, so that the page is nearly full before the break that follows it. |
| 10 | |
| 11 | #pagebreak(to: "odd") |
| 12 | |
| 13 | The second section starts on an odd page. Whether a blank page lies before it depends on how many pages the first section took. |
| 14 | |
| 15 | A second paragraph of the second section, and a little more text to carry the section on towards the end of its page. |
| 16 | |
| 17 | A third paragraph, which may or may not fall onto a new page, depending on the lines above. |
| 18 | |
| 19 | #pagebreak(to: "even") |
| 20 | |
| 21 | The third section starts on an even page, and so a blank page may lie before it too, numbered and furnished like the rest. |
| 22 | |
| 23 | Its second paragraph is here, and then the document ends. |