Repository navigation
Expand file tree
/
Copy pathtitlepage.typ
More file actions
67 lines (51 loc) · 1.69 KB
/
Copy pathtitlepage.typ
File metadata and controls
67 lines (51 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#import "/layout/fonts.typ": *
#import "/layout/titlepage_table.typ": render-title-table
#let titlepage(
title: "",
titleGerman: "",
degree: "",
program: "",
examiner: "",
supervisors: (),
author: "",
startDate: datetime,
submissionDate: datetime,
) = {
// Quality checks
assert(degree in ("Bachelor", "Master"), message: "The degree must be either 'Bachelor' or 'Master'")
set page(
margin: (left: 20mm, right: 20mm, top: 30mm, bottom: 30mm),
numbering: none,
number-align: center,
)
set text(
font: fonts.body,
size: 12pt,
lang: "en"
)
set par(leading: 0.5em)
// --- Title Page ---
v(1cm)
align(center, image("/figures/tum_logo.png", width: 26%))
v(5mm)
align(center, text(font: fonts.sans, 2em, weight: 700, "Technical University of Munich"))
v(5mm)
align(center, text(font: fonts.sans, 1.5em, weight: 100, "School of Computation, Information and Technology \n -- Informatics --"))
v(15mm)
align(center, text(font: fonts.sans, 1.3em, weight: 100, degree + "’s Thesis in " + program))
v(8mm)
align(center, text(font: fonts.sans, 2em, weight: 700, title))
align(center, text(font: fonts.sans, 2em, weight: 500, titleGerman))
let entries = ()
entries.push(("Author", author))
entries.push(("Examiner", examiner))
// Only show supervisors if there are any
if supervisors.len() > 0 {
let supervisorField = "Supervisor" + if supervisors.len() > 1 [s]
entries.push((supervisorField, supervisors.join(", ")))
}
entries.push(("Start Date", startDate.display("[day].[month].[year]")))
entries.push(("Submission Date", submissionDate.display("[day].[month].[year]")))
v(1cm)
render-title-table(entries)
}