Skip to content

Commit b635856

Browse files
committed
Add test for nonworking pdf bookmarks with figures (unfixed)
1 parent 98ade90 commit b635856

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

tests/pdf-bookmarks/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# generated by tytanic, do not edit
2+
3+
diff/**
4+
out/**

tests/pdf-bookmarks/ref/1.png

129 KB
Loading

tests/pdf-bookmarks/ref/2.png

114 KB
Loading

tests/pdf-bookmarks/test.pdf

59.2 KB
Binary file not shown.

tests/pdf-bookmarks/test.typ

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#import "../../themes/default.typ": *
2+
#let entry-list = (
3+
(key: "foo"),
4+
(key: "bar"),
5+
(key: "baz"),
6+
(key: "qux"),
7+
)
8+
#register-glossary(entry-list)
9+
#show: make-glossary
10+
11+
= Glossary
12+
13+
#print-glossary(entry-list, show-all: true)
14+
15+
= Heading 1: query @foo
16+
17+
= Heading 2: query @bar
18+
19+
#context {
20+
query(__glossarium_entry_selector).filter(f => f.body != [])
21+
}
22+
23+
= Incorrect bookmark: figure with contextual body #figure(context [Ah])
24+
25+
= Correct bookmark: figure with contextual body but content caption: #figure(kind: "Bh", supplement: "", context [Bh], caption: [Bh])
26+
27+
#context {
28+
query(figure.where(kind: "Bh"))
29+
}
30+

0 commit comments

Comments
 (0)