fixed: wrong page count in content

Refs: #14
This commit is contained in:
Sven Vogel 2024-07-03 14:25:37 +02:00
parent 5b44a7c591
commit c92bff7d00
2 changed files with 2 additions and 2 deletions

View File

@ -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") <end-of-prelude>

View File

@ -89,7 +89,7 @@
} else if query(<end-of-prelude>).first().location().page() > current-page {
numbering("I", nums.pos().first())
} else if query(<end-of-content>).first().location().page() >= current-page {
numbering("1 / 1", ..nums)
numbering("1 / 1", nums.pos().first(), counter(page).at(<end-of-content>).last())
} else {
numbering("a", nums.pos().first())
}