From 378ebe5f5601f11c3f428c17bed492012feb251e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 12 Jun 2023 15:40:43 +0200 Subject: Delayed errors Fixes #785. Thanks to @Dherse for the idea! --- tests/typ/bugs/cite-locate.typ | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/typ/bugs/cite-locate.typ (limited to 'tests/typ') 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 +#figure( + rect[-- PIRATE --], + caption: [A pirate @arrgh in @intro], +) + +#locate(loc => [Citation @distress on page #loc.page()]) + +#pagebreak() +#bibliography("/works.bib", style: "chicago-notes") -- cgit v1.2.3