diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-29 20:08:53 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-29 20:10:23 +0200 |
| commit | 72fb155403801216e244ab1df784ccd2a29c54cb (patch) | |
| tree | 820001268f86d7f9e43d60120db54124241fd62e /tests | |
| parent | 621922bb35657d002b123913dd507e35a178f4c2 (diff) | |
Link to label
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/meta/link.png | bin | 49582 -> 52099 bytes | |||
| -rw-r--r-- | tests/typ/meta/link.typ | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/ref/meta/link.png b/tests/ref/meta/link.png Binary files differindex d80acc6f..4e182e9b 100644 --- a/tests/ref/meta/link.png +++ b/tests/ref/meta/link.png 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 <hey> +#link(<hey>)[Go to text.] + +--- +// Error: 2-20 label does not exist in the document +#link(<hey>)[Nope.] + +--- +Text <hey> +Text <hey> +// Error: 2-20 label occurs multiple times in the document +#link(<hey>)[Nope.] |
