summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/cite-locate.pngbin0 -> 50739 bytes
-rw-r--r--tests/typ/bugs/cite-locate.typ23
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/ref/bugs/cite-locate.png b/tests/ref/bugs/cite-locate.png
new file mode 100644
index 00000000..396726f3
--- /dev/null
+++ b/tests/ref/bugs/cite-locate.png
Binary files differ
diff --git a/tests/typ/bugs/cite-locate.typ b/tests/typ/bugs/cite-locate.typ
new file mode 100644
index 00000000..c3786c5f
--- /dev/null
+++ b/tests/typ/bugs/cite-locate.typ
@@ -0,0 +1,23 @@
+// Test citation in other introspection.
+
+---
+#set page(width: 180pt)
+#set heading(numbering: "1")
+
+#outline(
+ title: [List of Figures],
+ target: figure.where(kind: image),
+)
+
+#pagebreak()
+
+= Introduction <intro>
+#figure(
+ rect[-- PIRATE --],
+ caption: [A pirate @arrgh in @intro],
+)
+
+#locate(loc => [Citation @distress on page #loc.page()])
+
+#pagebreak()
+#bibliography("/works.bib", style: "chicago-notes")