summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/bugs/cite-locate.typ23
1 files changed, 23 insertions, 0 deletions
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")