summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/meta/footnote-table.pngbin0 -> 40162 bytes
-rw-r--r--tests/typ/bugs/footnote-keep-multiple.typ2
-rw-r--r--tests/typ/meta/footnote-table.typ23
3 files changed, 24 insertions, 1 deletions
diff --git a/tests/ref/meta/footnote-table.png b/tests/ref/meta/footnote-table.png
new file mode 100644
index 00000000..023f8008
--- /dev/null
+++ b/tests/ref/meta/footnote-table.png
Binary files differ
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))
+)