parent
6567210ac4
commit
5b44a7c591
|
@ -11,6 +11,7 @@
|
||||||
#let default-config = (
|
#let default-config = (
|
||||||
lang: "en",
|
lang: "en",
|
||||||
region: "en",
|
region: "en",
|
||||||
|
draft: true,
|
||||||
author: (
|
author: (
|
||||||
name: "Sven Vogel",
|
name: "Sven Vogel",
|
||||||
semester: 4,
|
semester: 4,
|
||||||
|
|
|
@ -45,7 +45,9 @@
|
||||||
// these will have roman page numbers
|
// these will have roman page numbers
|
||||||
#new_declaration_of_authorship(config)
|
#new_declaration_of_authorship(config)
|
||||||
#new_confidentiality_statement_page(config)
|
#new_confidentiality_statement_page(config)
|
||||||
#new_prerelease_note(config)
|
#if config.draft {
|
||||||
|
new_prerelease_note(config)
|
||||||
|
}
|
||||||
#new_abstract(config)
|
#new_abstract(config)
|
||||||
#new_outline()
|
#new_outline()
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,21 @@
|
||||||
// Edited: 27.06.2024
|
// Edited: 27.06.2024
|
||||||
// License: MIT
|
// 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
|
// global style of document
|
||||||
#let global_styled_doc(config: dictionary, body: content) = context {
|
#let global_styled_doc(config: dictionary, body: content) = context {
|
||||||
let thesis = config.thesis
|
let thesis = config.thesis
|
||||||
|
@ -59,6 +74,9 @@
|
||||||
|
|
||||||
set heading(numbering: none)
|
set heading(numbering: none)
|
||||||
set page(
|
set page(
|
||||||
|
foreground: if config.draft {
|
||||||
|
watermark()
|
||||||
|
},
|
||||||
header-ascent: style.header.underline-top-padding + style.header.bottom-padding,
|
header-ascent: style.header.underline-top-padding + style.header.bottom-padding,
|
||||||
footer-descent: 1em,
|
footer-descent: 1em,
|
||||||
margin: (
|
margin: (
|
||||||
|
|
Loading…
Reference in New Issue