Compare commits
No commits in common. "8d7cd78c34b310f923297936f95709eef89cdce7" and "6567210ac402fa14beac4d8cf9bebd965eb5ca09" have entirely different histories.
8d7cd78c34
...
6567210ac4
|
@ -11,7 +11,6 @@
|
|||
#let default-config = (
|
||||
lang: "en",
|
||||
region: "en",
|
||||
draft: true,
|
||||
author: (
|
||||
name: "Sven Vogel",
|
||||
semester: 4,
|
||||
|
|
|
@ -45,9 +45,7 @@
|
|||
// these will have roman page numbers
|
||||
#new_declaration_of_authorship(config)
|
||||
#new_confidentiality_statement_page(config)
|
||||
#if config.draft {
|
||||
new_prerelease_note(config)
|
||||
}
|
||||
#new_prerelease_note(config)
|
||||
#new_abstract(config)
|
||||
#new_outline()
|
||||
|
||||
|
@ -64,8 +62,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>
|
||||
|
@ -78,9 +76,9 @@
|
|||
// add bibliography if set
|
||||
#if "bibliography" in config.thesis and config.thesis.bibliography != none {
|
||||
pagebreak(weak: true)
|
||||
counter(page).update(1)
|
||||
set bibliography(style: "ieee")
|
||||
config.thesis.bibliography
|
||||
counter(page).update(1)
|
||||
}
|
||||
|
||||
// appendix
|
||||
|
|
|
@ -7,21 +7,6 @@
|
|||
// Edited: 27.06.2024
|
||||
// License: MIT
|
||||
|
||||
#let watermark-color = luma(50%).transparentize(70%)
|
||||
|
||||
#let watermark() = rotate(-45deg,
|
||||
rect(radius: 1em, inset: 1em, stroke: watermark-color, {
|
||||
text(size: 48pt, weight: "bold", fill: watermark-color, "DRAFT")
|
||||
linebreak()
|
||||
text(size: 14pt, weight: "bold", fill: watermark-color)[
|
||||
This page is part of a preliminary
|
||||
#linebreak()
|
||||
document version.
|
||||
#linebreak()
|
||||
#text(size: 10pt, "Further usage without the authors consent is not permitted.")
|
||||
]
|
||||
}))
|
||||
|
||||
// global style of document
|
||||
#let global_styled_doc(config: dictionary, body: content) = context {
|
||||
let thesis = config.thesis
|
||||
|
@ -74,9 +59,6 @@
|
|||
|
||||
set heading(numbering: none)
|
||||
set page(
|
||||
foreground: if config.draft {
|
||||
watermark()
|
||||
},
|
||||
header-ascent: style.header.underline-top-padding + style.header.bottom-padding,
|
||||
footer-descent: 1em,
|
||||
margin: (
|
||||
|
@ -89,7 +71,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.pos().first(), counter(page).at(<end-of-content>).last())
|
||||
numbering("1 / 1", ..nums)
|
||||
} else {
|
||||
numbering("a", nums.pos().first())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue