-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunipd-doc.typ
52 lines (42 loc) · 977 Bytes
/
unipd-doc.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
// Comment-style lecture number annotation (# Lecture n)
#let lecture(number) = {
set text(gray)
[\# Lecture #number]
}
#let notes() = doc => {
set text(font: "Arial")
doc
}
#let unipd-doc(title: none, subtitle: none, author: none, date: none) = doc => {
let unipd-red = rgb(180, 27, 33)
set page(numbering: "1")
set list(marker: ([•], [◦], [--]))
set heading(numbering: "1.1.")
show heading.where(level: 1): it => {
set text(fill: unipd-red)
it
}
align(center, {
v(10em)
figure(image("images/unipd-logo.png", width: 50%))
v(3em)
text(size: 30pt, weight: "bold", fill: unipd-red, smallcaps(title))
v(5pt)
text(size: 25pt, weight: "bold", fill: unipd-red, subtitle)
parbreak()
set text(size: 18pt)
author
parbreak()
date
pagebreak()
})
show outline.entry.where(level: 1): it => {
v(1em, weak: true)
strong(it)
}
outline(
title: "Index",
indent: 2em,
)
doc
}