mirror of
https://github.com/typst/typst
synced 2025-05-18 11:05:28 +08:00
rename and make grid-subheaders test smaller
This commit is contained in:
parent
14a4714604
commit
daac9bba76
BIN
tests/ref/grid-subheaders-colorful.png
Normal file
BIN
tests/ref/grid-subheaders-colorful.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
Before Width: | Height: | Size: 19 KiB |
@ -1,3 +1,28 @@
|
||||
--- grid-subheaders-colorful ---
|
||||
#set page(width: auto, height: 12em)
|
||||
#let rows(n) = {
|
||||
range(n).map(i => ([John \##i], table.cell(stroke: green)[123], table.cell(stroke: blue)[456], [789], [?], table.hline(start: 4, end: 5, stroke: red))).flatten()
|
||||
}
|
||||
#table(
|
||||
columns: 5,
|
||||
align: center + horizon,
|
||||
table.header(
|
||||
table.cell(colspan: 5)[*Cool Zone*],
|
||||
),
|
||||
table.header(
|
||||
level: 2,
|
||||
table.cell(stroke: red)[*Name*], table.cell(stroke: aqua)[*Number*], [*Data 1*], [*Data 2*], [*Etc*],
|
||||
table.hline(start: 2, end: 3, stroke: yellow)
|
||||
),
|
||||
..rows(2),
|
||||
table.header(
|
||||
level: 2,
|
||||
table.cell(stroke: red)[*New Name*], table.cell(stroke: aqua, colspan: 4)[*Other Data*],
|
||||
table.hline(start: 2, end: 3, stroke: yellow)
|
||||
),
|
||||
..rows(3)
|
||||
)
|
||||
|
||||
--- grid-subheaders-basic ---
|
||||
#grid(
|
||||
grid.header(
|
||||
@ -271,31 +296,6 @@
|
||||
grid.cell(x: 0)[done.]
|
||||
)
|
||||
|
||||
--- grid-subheaders ---
|
||||
#set page(width: auto, height: 12em)
|
||||
#let rows(n) = {
|
||||
range(n).map(i => ([John \##i], table.cell(stroke: green)[123], table.cell(stroke: blue)[456], [789], [?], table.hline(start: 4, end: 5, stroke: red))).flatten()
|
||||
}
|
||||
#table(
|
||||
columns: 5,
|
||||
align: center + horizon,
|
||||
table.header(
|
||||
table.cell(colspan: 5)[*Cool Zone*],
|
||||
),
|
||||
table.header(
|
||||
level: 2,
|
||||
table.cell(stroke: red)[*Name*], table.cell(stroke: aqua)[*Number*], [*Data 1*], [*Data 2*], [*Etc*],
|
||||
table.hline(start: 2, end: 3, stroke: yellow)
|
||||
),
|
||||
..rows(6),
|
||||
table.header(
|
||||
level: 2,
|
||||
table.cell(stroke: red)[*New Name*], table.cell(stroke: aqua, colspan: 4)[*Other Data*],
|
||||
table.hline(start: 2, end: 3, stroke: yellow)
|
||||
),
|
||||
..rows(5)
|
||||
)
|
||||
|
||||
--- grid-subheaders-alone ---
|
||||
#table(
|
||||
table.header(
|
||||
|
Loading…
x
Reference in New Issue
Block a user