mirror of
https://github.com/C0ffeeCode/typst-dhbw-technik-template.git
synced 2025-12-28 15:42:19 +01:00
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:
parent
f313b25e89
commit
4cba67d231
2 changed files with 10 additions and 2 deletions
Binary file not shown.
12
template.typ
12
template.typ
|
|
@ -425,13 +425,15 @@
|
|||
..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
|
||||
#set heading(numbering: "1.1")
|
||||
#set page(numbering: "1 / 1")
|
||||
#counter(page).update(1)
|
||||
|
||||
#pagebreak(weak: true)
|
||||
|
||||
// Format code blocks
|
||||
#show raw.where(block: true): set align(left)
|
||||
#show raw.where(block: true): set par(justify: false)
|
||||
|
|
@ -447,6 +449,12 @@
|
|||
// the actual chapters
|
||||
#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
|
||||
#pagebreak()
|
||||
#bibliography(bibliography_path, title: selected_lang.bibliography,
|
||||
|
|
|
|||
Loading…
Reference in a new issue