summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-06-12 15:40:43 +0200
committerLaurenz <laurmaedje@gmail.com>2023-06-12 15:42:01 +0200
commit378ebe5f5601f11c3f428c17bed492012feb251e (patch)
tree4530bf009844faca40ca4fd6d0b9251fd51ef587 /tests
parent19bf1f58944a42f17903869c162a33aba22b80b0 (diff)
Delayed errors
Fixes #785. Thanks to @Dherse for the idea!
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")