mirror of
https://github.com/typst/typst
synced 2025-05-20 03:55:29 +08:00
initial gutter tests
This commit is contained in:
parent
cc19b80449
commit
13b4677270
BIN
tests/ref/grid-subheaders-multi-page-rowspan-gutter.png
Normal file
BIN
tests/ref/grid-subheaders-multi-page-rowspan-gutter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
BIN
tests/ref/grid-subheaders-repeat-gutter.png
Normal file
BIN
tests/ref/grid-subheaders-repeat-gutter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 503 B |
@ -170,6 +170,23 @@
|
||||
)
|
||||
)
|
||||
|
||||
--- grid-subheaders-repeat-gutter ---
|
||||
// Gutter below the header is also repeated
|
||||
#set page(height: 8em)
|
||||
#grid(
|
||||
inset: (bottom: 0.5pt),
|
||||
stroke: (bottom: 1pt),
|
||||
gutter: (1pt, 6pt, 1pt),
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
..([c],) * 10,
|
||||
)
|
||||
|
||||
--- grid-subheaders-repeat-replace ---
|
||||
#set page(height: 8em)
|
||||
#grid(
|
||||
@ -555,6 +572,38 @@
|
||||
)
|
||||
)
|
||||
|
||||
--- grid-subheaders-multi-page-rowspan-gutter ---
|
||||
#set page(height: 9em)
|
||||
#grid(
|
||||
columns: 2,
|
||||
column-gutter: 4pt,
|
||||
row-gutter: (0pt, 4pt, 8pt, 4pt),
|
||||
inset: (bottom: 0.5pt),
|
||||
stroke: (bottom: 1pt),
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
[x],
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
[y],
|
||||
grid.header(
|
||||
level: 3,
|
||||
[c]
|
||||
),
|
||||
[z], [z],
|
||||
grid.cell(
|
||||
rowspan: 5,
|
||||
block(fill: red, width: 1.5em, height: 6.4em)
|
||||
),
|
||||
[cell],
|
||||
[cell],
|
||||
[a\ b],
|
||||
grid.cell(x: 0)[end],
|
||||
)
|
||||
|
||||
--- grid-subheaders-short-lived-no-orphan-prevention ---
|
||||
// No orphan prevention for short-lived headers.
|
||||
#set page(height: 8em)
|
||||
|
Loading…
x
Reference in New Issue
Block a user