From 51020fcf3cd6fbe62d148d2188b9aaac4445bf63 Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Mon, 16 Dec 2024 21:23:13 +0100 Subject: Get numbering of page counter from style chain (#5589) --- tests/ref/counter-page-display.png | Bin 0 -> 150 bytes tests/suite/introspection/counter.typ | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/ref/counter-page-display.png (limited to 'tests') diff --git a/tests/ref/counter-page-display.png b/tests/ref/counter-page-display.png new file mode 100644 index 00000000..040b634d Binary files /dev/null and b/tests/ref/counter-page-display.png differ 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!_] -- cgit v1.2.3