summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorEric Biedert <github@ericbiedert.de>2024-12-16 21:23:13 +0100
committerGitHub <noreply@github.com>2024-12-16 20:23:13 +0000
commit51020fcf3cd6fbe62d148d2188b9aaac4445bf63 (patch)
treec7f12a4f1f170aae2a734ab5696a3b078d31410f /tests/suite
parent75273937f762ebeb05f71e91434b298b52b44670 (diff)
Get numbering of page counter from style chain (#5589)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/introspection/counter.typ8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/suite/introspection/counter.typ b/tests/suite/introspection/counter.typ
index e97f05dd..2f095f2f 100644
--- a/tests/suite/introspection/counter.typ
+++ b/tests/suite/introspection/counter.typ
@@ -102,6 +102,14 @@ B
#set page(numbering: "1 / 1", margin: (bottom: 20pt))
#counter(page).update(5)
+--- counter-page-display ---
+// Counter display should use numbering from style chain.
+#set page(
+ numbering: "A",
+ margin: (bottom: 20pt),
+ footer: context align(center, counter(page).display())
+)
+
--- counter-figure ---
// Count figures.
#figure(numbering: "A", caption: [Four 'A's], kind: image, supplement: "Figure")[_AAAA!_]