mirror of
https://github.com/typst/typst
synced 2025-05-16 18:15:29 +08:00
initial subheader tests
This commit is contained in:
parent
e142bb4e8f
commit
ce41113d9c
BIN
tests/ref/grid-subheaders-alone.png
Normal file
BIN
tests/ref/grid-subheaders-alone.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 256 B |
BIN
tests/ref/grid-subheaders-basic-non-consecutive.png
Normal file
BIN
tests/ref/grid-subheaders-basic-non-consecutive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 256 B |
BIN
tests/ref/grid-subheaders-basic-replace.png
Normal file
BIN
tests/ref/grid-subheaders-basic-replace.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 321 B |
BIN
tests/ref/grid-subheaders-basic.png
Normal file
BIN
tests/ref/grid-subheaders-basic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 210 B |
BIN
tests/ref/grid-subheaders-repeat-non-consecutive.png
Normal file
BIN
tests/ref/grid-subheaders-repeat-non-consecutive.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 599 B |
BIN
tests/ref/grid-subheaders-repeat.png
Normal file
BIN
tests/ref/grid-subheaders-repeat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 472 B |
@ -1,3 +1,92 @@
|
||||
--- grid-subheaders-basic ---
|
||||
#grid(
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
[c]
|
||||
)
|
||||
|
||||
--- grid-subheaders-basic-non-consecutive ---
|
||||
#grid(
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
[x],
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
[y],
|
||||
)
|
||||
|
||||
--- grid-subheaders-basic-replace ---
|
||||
#grid(
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
[x],
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
[y],
|
||||
grid.header(
|
||||
level: 2,
|
||||
[c]
|
||||
),
|
||||
[z],
|
||||
)
|
||||
|
||||
--- grid-subheaders-repeat ---
|
||||
#set page(height: 8em)
|
||||
#grid(
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
..([c],) * 10,
|
||||
)
|
||||
|
||||
--- grid-subheaders-repeat-non-consecutive ---
|
||||
#set page(height: 8em)
|
||||
#grid(
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
[x],
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
..([y],) * 10,
|
||||
)
|
||||
|
||||
--- grid-subheaders-repeat-replace ---
|
||||
#set page(height: 8em)
|
||||
#grid(
|
||||
grid.header(
|
||||
[a]
|
||||
),
|
||||
[x],
|
||||
grid.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
..([y],) * 10,
|
||||
grid.header(
|
||||
level: 2,
|
||||
[c]
|
||||
),
|
||||
..([z],) * 10,
|
||||
)
|
||||
|
||||
--- grid-subheaders ---
|
||||
#set page(width: auto, height: 12em)
|
||||
#let rows(n) = {
|
||||
@ -22,3 +111,14 @@
|
||||
),
|
||||
..rows(5)
|
||||
)
|
||||
|
||||
--- grid-subheaders-alone ---
|
||||
#table(
|
||||
table.header(
|
||||
[a]
|
||||
),
|
||||
table.header(
|
||||
level: 2,
|
||||
[b]
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user