fixed: outline showing wrong numbering format
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 11s Details

This commit is contained in:
Sven Vogel 2024-07-03 15:24:01 +02:00
parent 8d7cd78c34
commit dfa1590936
1 changed files with 15 additions and 1 deletions

View File

@ -89,11 +89,25 @@
} else if query(<end-of-prelude>).first().location().page() > current-page { } else if query(<end-of-prelude>).first().location().page() > current-page {
numbering("I", nums.pos().first()) numbering("I", nums.pos().first())
} else if query(<end-of-content>).first().location().page() >= current-page { } else if query(<end-of-content>).first().location().page() >= current-page {
numbering("1 / 1", nums.pos().first(), counter(page).at(<end-of-content>).last()) numbering("1", nums.pos().first())
} else { } else {
numbering("a", nums.pos().first()) 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(<end-of-prelude>).first().location().page() > page-number {
numbering("I", page-counter)
} else if query(<end-of-content>).first().location().page() >= page-number {
numbering("1 / 1", page-counter, counter(page).at(<end-of-content>).last())
} else {
numbering("a", page-counter)
}
],
header: context { header: context {
set align(left) set align(left)
if here().page() == 1 { if here().page() == 1 {