-
Notifications
You must be signed in to change notification settings - Fork 1
/
titlepage.typ
73 lines (65 loc) · 1.52 KB
/
titlepage.typ
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
68
69
70
71
72
73
#import "components.typ": sans-font, variable-pagebreak, author-fullname
#let oot-titlepage(
title: "",
document-type: "",
supervisor: "",
second-supervisor: "",
advisors: (),
author: none,
city: none,
date: none,
organisation: [],
organisation-logo: none,
header-logo: none,
is-doublesided: none,
lang: "en",
) = {
set page(numbering: none)
set par(leading: 1em, first-line-indent: 0em, justify: false)
align(center, header-logo)
v(5mm)
block(inset: 2cm)[
#text(font: sans-font, 2em, weight: 700, document-type)
#par(leading: 0.6em)[
#text(font: sans-font, 1.6em, weight: 500, title)
]
#v(1em)
#text(font: sans-font, 1.2em, weight: 500, author-fullname(author))
#if (city != none and date != none) [
\
#text(font: sans-font, 1.2em, weight: 500, city + ", " + date)
]
]
pad(
top: 0em,
right: 15%,
left: 15%,
grid(columns: 2, gutter: 1em, strong(if (lang == "de") [
Betreuer:
] else [
Advisors:
]), advisors.join(", "), strong(if (lang == "de") [
Themensteller:
] else [
Supervisor:
]), supervisor, strong(if (lang == "de") [
Zweitgutachter:
] else [
Second Supervisor:
]), second-supervisor),
)
align(bottom)[
#line(length: 100%)
#grid(
columns: 2,
gutter: 1em,
par(leading: 0.6em, organisation),
align(right + top)[
#move(dx: 1.2cm, dy: 0cm)[
#organisation-logo
]
],
)
]
variable-pagebreak(is-doublesided)
}