-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathproposal_template.typ
81 lines (69 loc) · 1.85 KB
/
proposal_template.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
74
75
76
77
78
79
80
81
#import "/layout/titlepage.typ": *
#import "/layout/transparency_ai_tools.typ": transparency_ai_tools as transparency_ai_tools_layout
#import "/utils/print_page_break.typ": *
// The project function defines how your document looks.
// It takes your content and some metadata and formats it.
// Go ahead and customize it to your liking!
#let proposal(
title: "",
titleGerman: "",
degree: "",
program: "",
supervisor: "",
advisors: (),
author: "",
startDate: datetime,
submissionDate: datetime,
transparency_ai_tools: "",
is_print: false,
body,
) = {
titlepage(
title: title,
titleGerman: titleGerman,
degree: degree,
program: program,
supervisor: supervisor,
advisors: advisors,
author: author,
startDate: startDate,
submissionDate: submissionDate
)
print_page_break(print: is_print)
// Set the document's basic properties.
set page(
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
numbering: "1",
number-align: center,
)
// Save heading and body font families in variables.
let body-font = "New Computer Modern"
let sans-font = "New Computer Modern Sans"
// Set body font family.
set text(
font: body-font,
size: 12pt,
lang: "en"
)
show math.equation: set text(weight: 400)
// --- Headings ---
show heading: set block(below: 0.85em, above: 1.75em)
show heading: set text(font: body-font)
set heading(numbering: "1.1")
// --- Paragraphs ---
let firstParagraphIndent = 1.45em
show heading: it => {
it
h(firstParagraphIndent)
}
set par(leading: 1em, justify: true, first-line-indent: 2em)
// --- Citation Style ---
set cite(style: "alphanumeric")
// --- Figures ---
show figure: set text(size: 0.85em)
body
pagebreak()
bibliography("/thesis.bib")
pagebreak()
transparency_ai_tools_layout(transparency_ai_tools)
}