-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtitlepage.typ
42 lines (42 loc) · 1.15 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
/// Generate a title page
///
/// - `title`: The title of the document
/// - `subtitle`: The subtitle of the document
/// - `author`: The author of the document
/// - `bottom-text`: The text at the bottom of the page
#let title-page(title: none, subtitle: none, author: none, bottom-text: none, logos: (none, none)) = page("a4")[
#v(2.5%)
#align(center)[
#box(
height: 10%,
grid(
align: center + horizon,
columns: (auto, auto),
column-gutter: 2%,
box(height: 100%, logos.at(0, default: none)),
box(height: 60%, logos.at(1, default: none)),
// image("./school-logo.svg", height: 100%),
// image("./school-text.svg", height: 60%),
),
)
]
#align(center)[#text(title, size: 32pt, font: ("Bodoni", "Source Han Serif"))]
#align(center)[#text(subtitle, size: 24pt, font: ("Bodoni", "Source Han Serif"))]
#align(
center,
text(size: 12pt, font: ("Bodoni", "Source Han Serif"))[
#author
],
)
#place(
bottom + center,
[
#align(
center,
text(size: 12pt, font: ("Bodoni", "Source Han Serif"))[
#bottom-text
],
)
],
)
]