diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-06-08 15:50:17 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-06-08 15:51:22 +0200 |
| commit | 56f7ede964cad235b2b39a00b2253f14b7bdad23 (patch) | |
| tree | 86a38dcaa0616bed6880b97dd69d7629f467d53a /tests | |
| parent | 2b812259c2ce5fdeac20a04a9aeb0b97800df90a (diff) | |
Improve footnote handling for multi-page blocks
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/meta/footnote-table.png | bin | 0 -> 40162 bytes | |||
| -rw-r--r-- | tests/typ/bugs/footnote-keep-multiple.typ | 2 | ||||
| -rw-r--r-- | tests/typ/meta/footnote-table.typ | 23 |
3 files changed, 24 insertions, 1 deletions
diff --git a/tests/ref/meta/footnote-table.png b/tests/ref/meta/footnote-table.png Binary files differnew file mode 100644 index 00000000..023f8008 --- /dev/null +++ b/tests/ref/meta/footnote-table.png diff --git a/tests/typ/bugs/footnote-keep-multiple.typ b/tests/typ/bugs/footnote-keep-multiple.typ index 3aa0b9d9..e4efe3ce 100644 --- a/tests/typ/bugs/footnote-keep-multiple.typ +++ b/tests/typ/bugs/footnote-keep-multiple.typ @@ -5,6 +5,6 @@ --- #set page(height: 100pt) -#v(30pt) +#v(40pt) A #footnote[a] \ B #footnote[b] diff --git a/tests/typ/meta/footnote-table.typ b/tests/typ/meta/footnote-table.typ new file mode 100644 index 00000000..bfbc3779 --- /dev/null +++ b/tests/typ/meta/footnote-table.typ @@ -0,0 +1,23 @@ +// 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("/tiger.jpg"), +) + +#table( + columns: 3, + ..range(1, 10) + .map(numbering.with("a")) + .map(v => upper(v) + footnote(v)) +) |
