oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/tables/align_height.typ
1.2 KiB, 1 run
created by r1870400018:66180, 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 grid alone on its page is as tall as its rows, not as tall as the page, so `align` places it: in the middle, at the foot, or |
| 3 | // both ways, and the cells move with it. A row of fractional height still fills the page. The same holds for a grid alone in a |
| 4 | // block of the page's height and in a pad. A grid that breaks is as tall as the rows on each page, the gutter that ends a page |
| 5 | // not among them. |
| 6 | #set page(width: 200pt, height: 150pt, margin: 10pt) |
| 7 | #align(horizon, grid(columns: 2, row-gutter: 12pt, [alpha], [beta], [gamma], [delta])) |
| 8 | #pagebreak() |
| 9 | #align(bottom, grid(columns: 2, row-gutter: 12pt, fill: luma(230), [alpha], [beta], [gamma], [delta])) |
| 10 | #pagebreak() |
| 11 | #align(center + horizon, grid(columns: (40pt, 40pt), row-gutter: 12pt, [alpha], [beta], [gamma], [delta])) |
| 12 | #pagebreak() |
| 13 | #align(horizon, grid(columns: 2, rows: (20pt, 1fr), row-gutter: 12pt, [alpha], [beta], [gamma], [delta])) |
| 14 | #pagebreak() |
| 15 | #align(horizon, block(height: 100%, grid(columns: 2, row-gutter: 12pt, [alpha], [beta], [gamma], [delta]))) |
| 16 | #pagebreak() |
| 17 | #align(horizon, pad(4pt, grid(columns: 2, row-gutter: 12pt, [alpha], [beta], [gamma], [delta]))) |
| 18 | #pagebreak() |
| 19 | #align(horizon, grid(columns: 1, row-gutter: 30pt, [a1], [a2], [a3], [a4], [a5])) |