diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-03-06 05:41:16 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-06 08:41:16 +0000 |
| commit | 898367f096fef507488438e00caae8c4ea1d0ff4 (patch) | |
| tree | df1911b8ed79fac943e3b4edcc54feb80a94bf90 /tests/typ/layout/grid-headers-2.typ | |
| parent | 5b2ffd9dd0612d391326e2dd5b5a4a026dec80eb (diff) | |
Repeatable Table Headers [More Flexible Tables Pt.5a] (#3545)
Diffstat (limited to 'tests/typ/layout/grid-headers-2.typ')
| -rw-r--r-- | tests/typ/layout/grid-headers-2.typ | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/typ/layout/grid-headers-2.typ b/tests/typ/layout/grid-headers-2.typ new file mode 100644 index 00000000..75c9b330 --- /dev/null +++ b/tests/typ/layout/grid-headers-2.typ @@ -0,0 +1,52 @@ +#set page(height: 15em) +#table( + rows: (auto, 2.5em, auto), + table.header( + [*Hello*], + [*World*] + ), + block(width: 2em, height: 20em, fill: red) +) + +--- +// Rowspan sizing algorithm doesn't do the best job at non-contiguous content +// ATM. +#set page(height: 15em) + +#table( + rows: (auto, 2.5em, 2em, auto, 5em), + table.header( + [*Hello*], + [*World*] + ), + table.cell(rowspan: 3, lorem(40)) +) + +--- +// Rowspan sizing algorithm doesn't do the best job at non-contiguous content +// ATM. +#set page(height: 15em) + +#table( + rows: (auto, 2.5em, 2em, auto, 5em), + gutter: 3pt, + table.header( + [*Hello*], + [*World*] + ), + table.cell(rowspan: 3, lorem(40)) +) + +--- +// This should look right +#set page(height: 15em) + +#table( + rows: (auto, 2.5em, 2em, auto), + gutter: 3pt, + table.header( + [*Hello*], + [*World*] + ), + table.cell(rowspan: 3, lorem(40)) +) |
