From 72fb155403801216e244ab1df784ccd2a29c54cb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 29 Mar 2023 20:08:53 +0200 Subject: Link to label --- tests/ref/meta/link.png | Bin 49582 -> 52099 bytes tests/typ/meta/link.typ | 15 +++++++++++++++ 2 files changed, 15 insertions(+) (limited to 'tests') diff --git a/tests/ref/meta/link.png b/tests/ref/meta/link.png index d80acc6f..4e182e9b 100644 Binary files a/tests/ref/meta/link.png and b/tests/ref/meta/link.png differ diff --git a/tests/typ/meta/link.typ b/tests/typ/meta/link.typ index 3ceb261d..de4c91c9 100644 --- a/tests/typ/meta/link.typ +++ b/tests/typ/meta/link.typ @@ -44,3 +44,18 @@ My cool #box(move(dx: 0.7cm, dy: 0.7cm, rotate(10deg, scale(200%, mylink)))) --- // Link to page one. #link((page: 1, x: 10pt, y: 20pt))[Back to the start] + +--- +// Test link to label. +Text +#link()[Go to text.] + +--- +// Error: 2-20 label does not exist in the document +#link()[Nope.] + +--- +Text +Text +// Error: 2-20 label occurs multiple times in the document +#link()[Nope.] -- cgit v1.2.3