Fix (differs than LaTeX template): Continue page counter at bibliography in Roman numerals where it was left of

This differs from the LaTeX template, but is apparently correct by the styling guidelines
This commit is contained in:
Laurenz 2024-08-06 13:08:52 +02:00
parent f313b25e89
commit 4cba67d231
Signed by: C0ffeeCode
SSH key fingerprint: SHA256:jnEltBNftC3wUZESLSMvM9zVPOkkevGRzqqoW2k2ORI
2 changed files with 10 additions and 2 deletions

Binary file not shown.

View file

@ -425,13 +425,15 @@
..acroArr, ..acroArr,
) )
#pagebreak(weak: true) // this will be used later to continue the Roman counter for pages where it left off
<roman_counter_preliminary_end>
// update heading and page numberings to begin the main part of the document // update heading and page numberings to begin the main part of the document
#set heading(numbering: "1.1") #set heading(numbering: "1.1")
#set page(numbering: "1 / 1") #set page(numbering: "1 / 1")
#counter(page).update(1) #counter(page).update(1)
#pagebreak(weak: true)
// Format code blocks // Format code blocks
#show raw.where(block: true): set align(left) #show raw.where(block: true): set align(left)
#show raw.where(block: true): set par(justify: false) #show raw.where(block: true): set par(justify: false)
@ -447,6 +449,12 @@
// the actual chapters // the actual chapters
#body #body
#set page(numbering: "I")
// reset the page numberings to the value of the last page counted in Roman numerals
#context counter(page).update(
counter(page).at(<roman_counter_preliminary_end>).first()
)
// finally, include the bibliography chapter at the end of the document // finally, include the bibliography chapter at the end of the document
#pagebreak() #pagebreak()
#bibliography(bibliography_path, title: selected_lang.bibliography, #bibliography(bibliography_path, title: selected_lang.bibliography,