From c92bff7d00ba1300a4ab5ad4ddac66cb71fcbf97 Mon Sep 17 00:00:00 2001 From: Sven Vogel Date: Wed, 3 Jul 2024 14:25:37 +0200 Subject: [PATCH] fixed: wrong page count in content Refs: #14 --- src/lib.typ | 2 +- src/style.typ | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.typ b/src/lib.typ index 54ee939..b38e90c 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -64,8 +64,8 @@ print-glossary(config.thesis.glossary) pagebreak(weak: true) - counter(page).update(1) } + #counter(page).update(1) // mark end of prelude #metadata("prelude terminate") diff --git a/src/style.typ b/src/style.typ index f4dd7b5..9923830 100644 --- a/src/style.typ +++ b/src/style.typ @@ -89,7 +89,7 @@ } 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) + numbering("1 / 1", nums.pos().first(), counter(page).at().last()) } else { numbering("a", nums.pos().first()) }