mirror of
https://github.com/typst/typst
synced 2025-05-19 11:35:27 +08:00
add subheaders demo test
This commit is contained in:
parent
6833ea321a
commit
3f10218b4a
BIN
tests/ref/grid-subheaders-demo.png
Normal file
BIN
tests/ref/grid-subheaders-demo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
@ -1,3 +1,32 @@
|
|||||||
|
--- grid-subheaders-demo ---
|
||||||
|
#set page(height: 15.2em)
|
||||||
|
#table(
|
||||||
|
columns: 2,
|
||||||
|
align: center,
|
||||||
|
table.header(
|
||||||
|
table.cell(colspan: 2)[*Regional User Data*],
|
||||||
|
),
|
||||||
|
table.header(
|
||||||
|
level: 2,
|
||||||
|
table.cell(colspan: 2)[*Germany*],
|
||||||
|
[*Username*], [*Joined*]
|
||||||
|
),
|
||||||
|
[john123], [2024],
|
||||||
|
[rob8], [2025],
|
||||||
|
[joe1], [2025],
|
||||||
|
[joe2], [2025],
|
||||||
|
[martha], [2025],
|
||||||
|
[pear], [2025],
|
||||||
|
table.header(
|
||||||
|
level: 2,
|
||||||
|
table.cell(colspan: 2)[*United States*],
|
||||||
|
[*Username*], [*Joined*]
|
||||||
|
),
|
||||||
|
[cool4], [2023],
|
||||||
|
[roger], [2023],
|
||||||
|
[bigfan55], [2022]
|
||||||
|
)
|
||||||
|
|
||||||
--- grid-subheaders-colorful ---
|
--- grid-subheaders-colorful ---
|
||||||
#set page(width: auto, height: 12em)
|
#set page(width: auto, height: 12em)
|
||||||
#let rows(n) = {
|
#let rows(n) = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user