2024-07-05 11:04:27 +00:00
|
|
|
// .--------------------------------------------------------------------------.
|
|
|
|
// | Titlepage |
|
|
|
|
// '--------------------------------------------------------------------------'
|
|
|
|
|
|
|
|
// Author: Sven Vogel
|
|
|
|
// Edited: 28.06.2024
|
|
|
|
// License: MIT
|
2024-06-27 13:57:04 +00:00
|
|
|
|
2024-08-12 16:09:14 +00:00
|
|
|
#let new_title_page(config) = (
|
|
|
|
context [
|
|
|
|
|
|
|
|
#let thesis = config.thesis
|
|
|
|
#let author = config.author
|
|
|
|
|
|
|
|
#set align(center)
|
|
|
|
|
|
|
|
// title
|
|
|
|
#v(2cm)
|
2024-09-27 15:43:58 +00:00
|
|
|
#par(justify: false, leading: 1.5em)[
|
|
|
|
#text(size: 2em, weight: "bold", hyphenate: false, thesis.title)
|
|
|
|
#linebreak()
|
|
|
|
// subtitle
|
|
|
|
#text(size: 2em, weight: "light", thesis.subtitle)
|
|
|
|
]
|
2024-08-12 16:09:14 +00:00
|
|
|
|
2024-09-27 15:43:58 +00:00
|
|
|
#set align(center + horizon)
|
2024-08-12 16:09:14 +00:00
|
|
|
|
|
|
|
// type of paper
|
2024-09-27 15:43:58 +00:00
|
|
|
#text(size: 1.5em, weight: "medium", thesis.kind)
|
2024-08-12 16:09:14 +00:00
|
|
|
|
|
|
|
// faculty
|
2024-09-27 15:43:58 +00:00
|
|
|
#pad()[
|
2024-08-12 16:09:14 +00:00
|
|
|
#if text.lang == "de" [
|
2024-08-20 07:56:39 +00:00
|
|
|
Praxisphase des #author.semester Semesters an der Fakultät für #author.faculty
|
2024-08-12 16:09:14 +00:00
|
|
|
#linebreak()
|
|
|
|
im Studiengang #author.program
|
|
|
|
] else if text.lang == "en" [
|
2024-08-20 07:56:39 +00:00
|
|
|
Practical phase of the #author.semester semester at the Faculty of #author.faculty
|
2024-08-12 16:09:14 +00:00
|
|
|
#linebreak()
|
|
|
|
in the degree program #author.program
|
|
|
|
] else [
|
|
|
|
#context panic("no translation for language: ", text.lang)
|
|
|
|
]
|
|
|
|
]
|
2024-06-27 13:57:04 +00:00
|
|
|
|
2024-08-12 16:09:14 +00:00
|
|
|
// university
|
2024-09-27 15:43:58 +00:00
|
|
|
#pad()[
|
2024-08-12 16:09:14 +00:00
|
|
|
#if text.lang == "de" [
|
|
|
|
an der
|
|
|
|
] else if text.lang == "en" [
|
|
|
|
at
|
|
|
|
] else [
|
|
|
|
#context panic("no translation for language: ", text.lang)
|
|
|
|
]
|
2024-06-27 13:57:04 +00:00
|
|
|
#linebreak()
|
2024-08-12 16:09:14 +00:00
|
|
|
#author.university
|
2024-06-27 13:57:04 +00:00
|
|
|
]
|
|
|
|
|
2024-09-27 15:43:58 +00:00
|
|
|
#set align(bottom + left)
|
2024-08-12 16:09:14 +00:00
|
|
|
|
2024-06-28 09:54:30 +00:00
|
|
|
#if text.lang == "de" [
|
2024-08-12 16:09:14 +00:00
|
|
|
#table(
|
|
|
|
columns: 2,
|
|
|
|
column-gutter: 1cm,
|
|
|
|
align: left,
|
|
|
|
stroke: none,
|
|
|
|
[*Verfasser:*], author.name,
|
|
|
|
[*Bearbeitungszeitraum:*], thesis.timeframe,
|
2024-11-11 13:44:13 +00:00
|
|
|
[*Matrikelnummer, Kurs:*],
|
|
|
|
str(author.matriculation-number) + ", " + author.course,
|
|
|
|
|
2024-08-12 16:09:14 +00:00
|
|
|
[*Ausbildungsbetrieb:*], author.company,
|
|
|
|
[*Betrieblicher Betreuer:*], author.supervisor,
|
|
|
|
[*Abgabedatum:*], thesis.submission-date,
|
|
|
|
)
|
2024-06-28 09:54:30 +00:00
|
|
|
] else if text.lang == "en" [
|
2024-08-12 16:09:14 +00:00
|
|
|
#table(
|
|
|
|
columns: 2,
|
|
|
|
column-gutter: 1cm,
|
|
|
|
align: left,
|
|
|
|
stroke: none,
|
|
|
|
[*Author:*], author.name,
|
|
|
|
[*Editing period:*], thesis.timeframe,
|
2024-11-11 13:44:13 +00:00
|
|
|
[*Matriculation number, course:*],
|
|
|
|
str(author.matriculation-number) + ", " + author.course,
|
|
|
|
|
2024-08-12 16:09:14 +00:00
|
|
|
[*Training company:*], author.company,
|
|
|
|
[*Company supervisor:*], author.supervisor,
|
|
|
|
[*Submission date:*], thesis.submission-date,
|
|
|
|
)
|
2024-06-27 13:57:04 +00:00
|
|
|
] else [
|
2024-06-28 09:54:30 +00:00
|
|
|
#context panic("no translation for language: ", text.lang)
|
2024-06-27 13:57:04 +00:00
|
|
|
]
|
|
|
|
|
2024-08-12 16:09:14 +00:00
|
|
|
#align(
|
|
|
|
bottom,
|
|
|
|
grid(
|
2024-06-27 13:57:04 +00:00
|
|
|
// set width of columns
|
|
|
|
// we need two, so make both half the page width
|
|
|
|
columns: (60%, 40%),
|
2024-06-28 09:54:30 +00:00
|
|
|
align(left, if text.lang == "de" [
|
2024-06-27 13:57:04 +00:00
|
|
|
Unterschrift des betrieblichen Betreuers
|
2024-06-28 09:54:30 +00:00
|
|
|
] else if text.lang == "en" [
|
2024-06-27 13:57:04 +00:00
|
|
|
Signature of the company supervisor
|
|
|
|
] else [
|
2024-06-28 09:54:30 +00:00
|
|
|
#context panic("no translation for language: ", text.lang)
|
2024-06-27 13:57:04 +00:00
|
|
|
]
|
|
|
|
),
|
2024-08-12 16:09:14 +00:00
|
|
|
align(right, {line(length: 6cm)})),
|
|
|
|
)
|
2024-06-27 13:57:04 +00:00
|
|
|
|
2024-08-12 16:09:14 +00:00
|
|
|
#counter(page).update(0)
|
|
|
|
]
|
|
|
|
)
|