mirror of
https://github.com/typst/typst
synced 2025-05-17 02:25:27 +08:00
24 lines
528 B
Typst
24 lines
528 B
Typst
// Test footnotes in tables. When the table spans multiple pages, the footnotes
|
|
// will all be after the table, but it shouldn't create any empty pages.
|
|
---
|
|
|
|
#set page(height: 100pt)
|
|
|
|
= Tables
|
|
#table(
|
|
columns: 2,
|
|
[Hello footnote #footnote[This is a footnote.]],
|
|
[This is more text],
|
|
[This cell
|
|
#footnote[This footnote is not on the same page]
|
|
breaks over multiple pages.],
|
|
image("/files/tiger.jpg"),
|
|
)
|
|
|
|
#table(
|
|
columns: 3,
|
|
..range(1, 10)
|
|
.map(numbering.with("a"))
|
|
.map(v => upper(v) + footnote(v))
|
|
)
|