-
Notifications
You must be signed in to change notification settings - Fork 18
/
template.typ
276 lines (248 loc) · 5.24 KB
/
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
// const color
#let color_darknight = rgb("#131A28")
#let color_darkgray = rgb("333333")
// layout utility
#let justify_align(left_body, right_body) = {
block[
#left_body
#box(width: 1fr)[
#align(right)[
#right_body
]
]
]
}
#let justify_align_3(left_body, mid_body, right_body) = {
block[
#box(width: 1fr)[
#align(left)[
#left_body
]
]
#box(width: 1fr)[
#align(center)[
#mid_body
]
]
#box(width: 1fr)[
#align(right)[
#right_body
]
]
]
}
#let resume(author: (), date: "", body) = {
set document(
author: author.firstname + " " + author.lastname,
title: "resume",
)
set text(
font: ("Source Sans Pro"),
lang: "en",
size: 11pt,
fill: color_darknight,
fallback: false
)
set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: [
#set text(fill: gray, size: 8pt)
#justify_align_3[
#smallcaps[#date]
][
#smallcaps[
#author.firstname
#author.lastname
#sym.dot.c
#"Résumé"
]
][
#counter(page).display()
]
],
footer-descent: 0pt,
)
// set paragraph spacing
show par: set block(above: 0.75em, below: 0.75em)
set par(justify: true)
set heading(
numbering: none,
outlined: false,
)
let name = {
align(center)[
#pad(bottom: 5pt)[
#block[
#set text(size: 32pt, style: "normal", font: ("Roboto"))
#text(weight: "thin")[#author.firstname]
#text(weight: "bold")[#author.lastname]
]
]
]
}
let positions = {
set text(
size: 9pt,
weight: "regular"
)
align(center)[
#smallcaps[
#author.positions.join(
text[#" "#sym.dot.c#" "]
)
]
]
}
let contacts = {
set box(height: 11pt)
let linkedin_icon = box(image("assets/icons/linkedin.svg"))
let github_icon = box(image("assets/icons/square-github.svg"))
let email_icon = box(image("assets/icons/square-envelope-solid.svg"))
let phone_icon = box(image("assets/icons/square-phone-solid.svg"))
let separator = box(width: 5pt)
align(center)[
#block[
#align(horizon)[
#phone_icon
#box[#text(author.phone)]
#separator
#email_icon
#box[#link("mailto:" + author.email)[#author.email]]
#separator
#github_icon
#box[#link("https://github.com/" + author.github)[#author.github]]
#separator
#linkedin_icon
#box[
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.linkedin]
]
]
]
]
}
name
positions
contacts
body
}
// general style
#let resume_section(title) = {
set text(
size: 16pt,
weight: "regular"
)
align(left)[
#smallcaps[
// #text[#title.slice(0, 3)]#strong[#text[#title.slice(3)]]
#strong[#text[#title]]
]
#box(width: 1fr, line(length: 100%))
]
}
#let resume_item(body) = {
set text(size: 10pt, style: "normal", weight: "light")
set par(leading: 0.65em)
body
}
#let resume_time(body) = {
set text(weight: "light", style: "italic", size: 9pt)
body
}
#let resume_degree(body) = {
set text(size: 10pt, weight: "light")
smallcaps[#body]
}
#let resume_organization(body) = {
set text(size: 12pt, style: "normal", weight: "bold")
body
}
#let resume_location(body) = {
set text(size: 12pt, style: "italic", weight: "light")
body
}
#let resume_position(body) = {
set text(size: 10pt, weight: "regular")
smallcaps[#body]
}
#let resume_category(body) = {
set text(size: 11pt, weight: "bold")
body
}
#let resume_gpa(numerator, denominator) = {
set text(size: 12pt, style: "italic", weight: "light")
text[Cumulative GPA: #box[#strong[#numerator] / #denominator]]
}
// sections specific components
#let education_item(organization, degree, gpa, time_frame) = {
set block(above: 0.7em, below: 0.7em)
set pad(top: 5pt)
pad[
#justify_align[
#resume_organization[#organization]
][
#gpa
]
#justify_align[
#resume_degree[#degree]
][
#resume_time[#time_frame]
]
]
}
#let work_experience_item_header(
company,
location,
position,
time_frame
) = {
set block(above: 0.7em, below: 0.7em)
set pad(top: 5pt)
pad[
#justify_align[
#resume_organization[#company]
][
#resume_location[#location]
]
#justify_align[
#resume_position[#position]
][
#resume_time[#time_frame]
]
]
}
#let personal_project_item_header(
name,
location,
position,
start_time,
) = {
set block(above: 0.7em, below: 0.7em)
set pad(top: 5pt)
pad[
#justify_align[
#resume_organization[#name]
][
#resume_location[#location]
]
#justify_align[
#resume_position[#position]
][
#resume_time[#start_time]
]
]
}
#let skill_item(category, items) = {
set block(above: 1.0em, below: 1.0em)
grid(
columns: (18fr, 80fr),
gutter: 10pt,
align(right)[
#resume_category[#category]
],
align(left)[
#set text(size: 11pt, style: "normal", weight: "light")
#items.join(", ")
],
)
}