mirror of
https://github.com/typst/typst
synced 2025-05-21 12:35:29 +08:00
42 lines
582 B
Typst
42 lines
582 B
Typst
// General footer-only tests
|
|
#set page(height: 9em)
|
|
#table(
|
|
columns: 2,
|
|
[a], [],
|
|
[b], [],
|
|
[c], [],
|
|
[d], [],
|
|
[e], [],
|
|
table.footer(
|
|
[*Ok*], table.cell(rowspan: 2)[test],
|
|
[*Thanks*]
|
|
)
|
|
)
|
|
|
|
---
|
|
#set page(height: 5em)
|
|
#table(
|
|
table.footer[a][b][c]
|
|
)
|
|
|
|
---
|
|
#table(table.footer[a][b][c])
|
|
|
|
#table(
|
|
gutter: 3pt,
|
|
table.footer[a][b][c]
|
|
)
|
|
|
|
---
|
|
// Test footer stroke priority edge case
|
|
#set page(height: 10em)
|
|
#table(
|
|
columns: 2,
|
|
stroke: black,
|
|
..(table.cell(stroke: aqua)[d],) * 8,
|
|
table.footer(
|
|
table.cell(rowspan: 2, colspan: 2)[a],
|
|
[c], [d]
|
|
)
|
|
)
|