forked from wusyong/resume.typ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.typ
60 lines (52 loc) · 955 Bytes
/
resume.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
#let cv(author: "", contacts: (), body) = {
set document(author: author, title: author)
set text(font: "Linux Libertine", lang: "en")
show heading: it => [
#pad(bottom: -10pt, [#smallcaps(it.body)])
#line(length: 100%, stroke: 1pt)
]
// Author
align(center)[
#block(text(weight: 700, 1.75em, author))
]
// Contact information.
pad(
top: 0.5em,
bottom: 0.5em,
x: 2em,
align(center)[
#grid(
columns: 4,
gutter: 1em,
..contacts
)
],
)
// Main body.
set par(justify: true)
body
}
#let icon(name, baseline: 1.5pt) = {
box(
baseline: baseline,
height: 10pt,
image(name)
)
}
#let exp(place, title, location, time, details) = {
pad(
bottom: 10%,
grid(
columns: (auto, 1fr),
align(left)[
*#place* \
#emph[#title]
],
align(right)[
#location \
#time
]
)
)
details
}