From dfa1590936159334e6ca8a23e6fc63e0edb07ef0 Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Wed, 3 Jul 2024 15:24:01 +0200 Subject: [PATCH] fixed: outline showing wrong numbering format --- src/style.typ | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/style.typ b/src/style.typ index 9923830..d86f12d 100644 --- a/src/style.typ +++ b/src/style.typ @@ -89,11 +89,25 @@ } else if query().first().location().page() > current-page { numbering("I", nums.pos().first()) } else if query().first().location().page() >= current-page { - numbering("1 / 1", nums.pos().first(), counter(page).at().last()) + numbering("1", nums.pos().first()) } else { numbering("a", nums.pos().first()) } }, + footer: context [ + #set align(center) + #let page-counter = counter(page).get().first() + #let page-number = here().page() + #if page-number == 1 { + [] + } else if query().first().location().page() > page-number { + numbering("I", page-counter) + } else if query().first().location().page() >= page-number { + numbering("1 / 1", page-counter, counter(page).at().last()) + } else { + numbering("a", page-counter) + } + ], header: context { set align(left) if here().page() == 1 {