dhbw-abb-typst-template/src/pages/declaration-of-authorship.typ

66 lines
2.0 KiB
Plaintext
Raw Normal View History

// .--------------------------------------------------------------------------.
// | Declaration of Authorship |
// '--------------------------------------------------------------------------'
2024-06-28 09:54:30 +00:00
// Author: Sven Vogel
// Edited: 28.06.2024
// License: MIT
2024-07-01 10:13:57 +00:00
2024-08-12 16:09:14 +00:00
#let new_declaration_of_authorship(config) = (
context {
2024-08-12 16:09:14 +00:00
pagebreak(weak: true)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
let thesis = config.thesis
2024-08-12 16:09:14 +00:00
if text.lang == "de" [
#heading("Selbständigkeitserklärung")
] else if text.lang == "en" [
#heading("Declaration of Authorship")
]
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
v(1em)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
if text.lang == "de" [
Ich versichere hiermit, dass ich meine Prüfung mit dem Thema
] else if text.lang == "en" [
I hereby confirm that I have written this thesis with the subject
]
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
v(1em)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
set align(center)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
text(weight: "bold", thesis.title)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
if thesis.subtitle != none {
linebreak()
thesis.subtitle
}
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
set align(left)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
v(1em)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
set par(justify: true)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
if text.lang == "de" [
selbständig verfasst und keine anderen als die angegebenen Quellen und Hilfsmittel benutzt habe. Ich versichere zudem, dass die eingereichte elektronische Fassung mit der gedruckten Fassung übereinstimmt.
] else if text.lang == "en" [
independently and have not used any sources or aids other than those specified. I also confirm that the electronic version submitted is identical to the printed version.
]
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
set align(horizon)
2024-06-28 09:54:30 +00:00
2024-08-12 16:09:14 +00:00
grid(
2024-06-28 09:54:30 +00:00
// set width of columns
// we need two, so make both half the page width
columns: (50%, 50%),
row-gutter: 0.75em,
align(left, {line(length: 6cm)}),
align(left, {line(length: 6cm)}),
align(left, if text.lang == "de" [ Ort, Datum ] else if text.lang == "en" [ Place, Date ] else { panic("no translation for language: ", text.lang) }),
2024-06-28 09:54:30 +00:00
align(left, if text.lang == "de" [ Unterschrift ] else if text.lang == "en" [ Signature ] else { panic("no translation for language: ", text.lang) }))
2024-08-12 16:09:14 +00:00
}
)