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 {