oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/furniture/odd_even.typ
509 bytes, 1 run
created by r1870400018:63864, 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 | // oracle: levels 4 |
| 2 | // A two-sided page: inside and outside margins, and a header that differs on odd and even pages by the |
| 3 | // page counter, on the side of the page its parity gives. |
| 4 | #set page( |
| 5 | width: 200pt, height: 200pt, margin: (inside: 36pt, outside: 18pt, y: 40pt), |
| 6 | header: context { |
| 7 | let p = counter(page).get().first() |
| 8 | if calc.odd(p) { align(right)[Odd #p] } else { align(left)[Even #p] } |
| 9 | }, |
| 10 | ) |
| 11 | Page one text. |
| 12 | #pagebreak() |
| 13 | Page two text. |
| 14 | #pagebreak() |
| 15 | Page three text. |
| 16 | #pagebreak() |
| 17 | Page four text. |