Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_austenite/tests/fixtures/eval/tables/align_width.typ

1020 bytes, 1 run

created by r1870400018:66182, 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 or table is as wide as its columns, so `align` places it: centred or at the right, the cells move with it. A fractional
3// column fills the region, and fixed columns wider than the region leave the grid at the region's start, whatever the alignment.
4// The same holds in a block of its own width and in a box.
5#set page(width: 200pt, height: 330pt, margin: 10pt)
6#align(center, grid(columns: (40pt, 40pt), [alpha], [beta]))
7#align(right, table(columns: (40pt, 40pt), [gamma], [delta]))
8#align(center, grid(columns: (1fr, 1fr), [one], [two]))
9#align(right, grid(columns: (40pt, 1fr), [three], [four]))
10#align(center, grid(columns: (110pt, 110pt), align: left, [wide], [wider]))
11#align(right, table(columns: (100pt, 100pt), align: left, [over], [flow]))
12#align(center, table(columns: 2, [auto], [columns], [a], [b]))
13#block(width: 100%, align(center, grid(columns: (40pt, 40pt), column-gutter: 10pt, [in], [block])))
14#box(width: 150pt, align(right, grid(columns: (30pt, 30pt), [in], [box])))