diff options
| author | PgBiel <9021226+PgBiel@users.noreply.github.com> | 2024-03-03 16:32:27 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 19:32:27 +0000 |
| commit | decb4fd9b98968dbaa89451ab6620b33819260a5 (patch) | |
| tree | ea2b5c2dcefe85d9be57f28a3c103605b5178513 /tests/typ/layout/grid-rowspan-split-2.typ | |
| parent | 098ef5acbb91723c4c806b23e5e5d85523fc88aa (diff) | |
Merging cells: Rowspans [More Flexible Tables Pt.3b] (#3501)
Diffstat (limited to 'tests/typ/layout/grid-rowspan-split-2.typ')
| -rw-r--r-- | tests/typ/layout/grid-rowspan-split-2.typ | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/typ/layout/grid-rowspan-split-2.typ b/tests/typ/layout/grid-rowspan-split-2.typ new file mode 100644 index 00000000..189feed3 --- /dev/null +++ b/tests/typ/layout/grid-rowspan-split-2.typ @@ -0,0 +1,37 @@ +// Rowspan split without ending at the auto row + +--- +#set page(height: 6em) +#table( + rows: (4em,) * 7 + (auto,) + (4em,) * 7, + columns: 2, + column-gutter: 1em, + row-gutter: (1em, 2em) * 4, + fill: (x, y) => if calc.odd(x + y) { orange.lighten(20%) } else { red }, + table.cell(rowspan: 15, [a \ ] * 15), + [] * 15 +) + +--- +#set page(height: 6em) +#table( + rows: (4em,) * 7 + (auto,) + (4em,) * 7, + columns: 2, + column-gutter: 1em, + row-gutter: (1em, 2em) * 4, + fill: (x, y) => if calc.odd(x + y) { green } else { green.darken(40%) }, + table.cell(rowspan: 15, block(fill: blue, width: 2em, height: 4em * 14 + 3em)), + [] * 15 +) + +--- +#set page(height: 6em) +#table( + rows: (3em,) * 15, + columns: 2, + column-gutter: 1em, + row-gutter: (1em, 2em) * 4, + fill: (x, y) => if calc.odd(x + y) { aqua } else { blue }, + table.cell(breakable: true, rowspan: 15, [a \ ] * 15), + [] * 15 +) |
