forked from ls1intum/thesis-template-typst
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedbacklog_template.typ
More file actions
52 lines (41 loc) · 1.28 KB
/
feedbacklog_template.typ
File metadata and controls
52 lines (41 loc) · 1.28 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
#import "/layout/fonts.typ": *
#import "/layout/titlepage_table.typ": render-title-table
#let feedbacklog(
titleEnglish: "",
examiner: "",
supervisors: (),
author: "",
presentationDate: datetime,
feedbacklogSubmissionDate: datetime,
body,
) = {
// Set the document's basic properties.
set page(
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
numbering: "1",
number-align: center,
)
// Set body font family.
set text(
font: fonts.body,
size: 12pt,
lang: "en"
)
align(center, text(font: fonts.sans, 1.7em, weight: 700, "Presentation Feedbacklog" + linebreak() + titleEnglish))
v(7.5mm)
align(center, text(font: fonts.sans, 1.2em, weight: 400, feedbacklogSubmissionDate.display("[day]. [month repr:long] [year]")))
v(7.5mm)
line(length: 100%, stroke: 0.5pt)
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(("Presentation Date", presentationDate.display("[day].[month].[year]")))
render-title-table(entries)
line(length: 100%, stroke: 0.5pt)
body
}