2023-07-10 22:45:59 -04:00
|
|
|
#import "fontawesome.typ": github, fa
|
|
|
|
|
2023-10-21 15:06:08 -04:00
|
|
|
#let DEFAULT_STRONG = 300;
|
|
|
|
#let SMALL_STRONG = 200;
|
2023-07-10 22:45:59 -04:00
|
|
|
|
2023-10-24 10:51:37 -04:00
|
|
|
#let TITLE_FONT = "Calibri"
|
2023-10-21 22:27:41 -04:00
|
|
|
#let HEADING_FONT = TITLE_FONT
|
2023-10-24 10:51:37 -04:00
|
|
|
#let BODY_FONT = "Calibri"
|
2023-10-21 22:27:41 -04:00
|
|
|
|
2023-10-24 10:51:37 -04:00
|
|
|
#let BODY_FONT_SIZE = 11pt
|
2023-10-24 11:42:42 -04:00
|
|
|
#let HEADING_FONT_SIZE = 1.1em
|
|
|
|
#let TITLE_FONT_SIZE = 1.9em
|
2023-10-21 22:27:41 -04:00
|
|
|
|
2023-10-24 11:42:42 -04:00
|
|
|
#let HEADING_LINE_GAP = 1.2mm
|
|
|
|
#let BODY_LINE_HEIGHT = 0.6em
|
2023-10-21 22:27:41 -04:00
|
|
|
|
|
|
|
// rest = not top
|
2023-10-24 11:42:42 -04:00
|
|
|
#let PAGE_MARGINS = (rest: 0.35in, top: 0.3in, bottom: 0.3in)
|
2023-07-10 22:45:59 -04:00
|
|
|
|
|
|
|
#let indent(content) = {
|
|
|
|
block(
|
|
|
|
inset: (left: 1em, right: 0.5em),
|
|
|
|
content
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
// General entry that is split into a left and right half (for experience and education).
|
|
|
|
#let cv_entry(left_content: none, right_content: none, details: none) = {
|
|
|
|
stack(
|
|
|
|
dir: ttb,
|
2023-10-24 11:42:42 -04:00
|
|
|
spacing: 0.6em,
|
2023-07-10 22:45:59 -04:00
|
|
|
grid(
|
2023-10-24 11:42:42 -04:00
|
|
|
columns: (13fr, 3fr),
|
|
|
|
column-gutter: 0.5cm,
|
2023-10-24 10:51:37 -04:00
|
|
|
{
|
|
|
|
set strong(delta: DEFAULT_STRONG)
|
|
|
|
set align(left)
|
|
|
|
left_content
|
|
|
|
},
|
|
|
|
{
|
|
|
|
set strong(delta: SMALL_STRONG)
|
|
|
|
set align(right)
|
|
|
|
right_content
|
|
|
|
}
|
2023-07-10 22:45:59 -04:00
|
|
|
),
|
|
|
|
{
|
|
|
|
set align(left)
|
2023-10-21 15:06:08 -04:00
|
|
|
set strong(delta: SMALL_STRONG)
|
2023-07-10 22:45:59 -04:00
|
|
|
details
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Entry for work.
|
2023-10-24 10:51:37 -04:00
|
|
|
#let work_entry(role, company, tasks: none, start_date: none, end_date: none, location: none, one_line: true) = {
|
2023-07-10 22:45:59 -04:00
|
|
|
let task_list = if tasks != none {
|
|
|
|
let list = []
|
|
|
|
for task in tasks {
|
|
|
|
list += [- #task]
|
|
|
|
}
|
|
|
|
list
|
|
|
|
} else {
|
|
|
|
none
|
|
|
|
}
|
|
|
|
cv_entry(
|
|
|
|
left_content: {
|
2023-10-24 11:42:42 -04:00
|
|
|
text(1em)[*#role*, ]
|
2023-10-24 10:51:37 -04:00
|
|
|
text[#emph[#company]]
|
|
|
|
if location != none {
|
|
|
|
text[_, #location _]
|
|
|
|
}
|
2023-07-10 22:45:59 -04:00
|
|
|
},
|
|
|
|
right_content: {
|
2023-10-21 22:36:52 -04:00
|
|
|
[*#start_date -- #end_date*]
|
2023-07-10 22:45:59 -04:00
|
|
|
|
|
|
|
},
|
|
|
|
details: task_list
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
#let project(title, repo_link, tools) = {
|
2023-10-21 15:06:08 -04:00
|
|
|
set strong(delta: DEFAULT_STRONG)
|
2023-10-24 11:42:42 -04:00
|
|
|
link(repo_link)[#text(1em)[*#title* #fa(github)]] + [ | _ #tools _]
|
2023-07-10 22:45:59 -04:00
|
|
|
}
|
|
|
|
|
2023-10-24 10:51:37 -04:00
|
|
|
|
2023-07-10 22:45:59 -04:00
|
|
|
// Set name and contact data and format headings
|
|
|
|
#let template(name, contact_data, color, doc) = {
|
2023-10-21 22:27:41 -04:00
|
|
|
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
2023-07-10 22:45:59 -04:00
|
|
|
set list(indent: 1.25em, marker: [•])
|
2023-10-21 22:27:41 -04:00
|
|
|
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
|
|
|
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
2023-10-24 10:51:37 -04:00
|
|
|
|
|
|
|
let header = {
|
|
|
|
align(center)[
|
2023-10-24 11:42:42 -04:00
|
|
|
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT)[*#name*]
|
|
|
|
#block(above: 0em, below: 0.6em)
|
|
|
|
#set text(fill: rgb("#444"))
|
2023-10-24 10:51:37 -04:00
|
|
|
#{
|
|
|
|
if contact_data != none and contact_data.len() > 0 {
|
|
|
|
let elements = for el in contact_data {
|
|
|
|
(link(el.link)[#{el.service + " " + el.display}],)
|
|
|
|
}
|
2023-10-24 11:42:42 -04:00
|
|
|
// we love hacks
|
|
|
|
elements.slice(0, 2).join(" | ")
|
|
|
|
"\n"
|
|
|
|
elements.slice(2).join(" | ")
|
2023-07-10 22:45:59 -04:00
|
|
|
}
|
|
|
|
}
|
2023-10-24 11:42:42 -04:00
|
|
|
#v(3pt)
|
2023-10-24 10:51:37 -04:00
|
|
|
]
|
|
|
|
}
|
2023-07-10 22:45:59 -04:00
|
|
|
|
|
|
|
show heading.where(level: 1): i => {
|
2023-10-21 15:06:08 -04:00
|
|
|
set align(left + horizon)
|
2023-10-24 11:42:42 -04:00
|
|
|
let title = upper(i.body)
|
2023-10-21 22:36:52 -04:00
|
|
|
|
2023-10-24 11:42:42 -04:00
|
|
|
set block(above: 1em, below: 0.75em)
|
|
|
|
set text(size: BODY_FONT_SIZE, fill: color, font: HEADING_FONT)
|
2023-07-10 22:45:59 -04:00
|
|
|
stack(
|
2023-10-24 11:42:42 -04:00
|
|
|
dir: ttb,
|
2023-10-21 22:27:41 -04:00
|
|
|
spacing: HEADING_LINE_GAP,
|
2023-10-24 11:42:42 -04:00
|
|
|
|
2023-07-10 22:45:59 -04:00
|
|
|
title,
|
2023-10-24 11:42:42 -04:00
|
|
|
line(length: 100%, stroke: (paint: color, thickness: 0.5pt))
|
2023-07-10 22:45:59 -04:00
|
|
|
)
|
2023-10-24 10:51:37 -04:00
|
|
|
|
2023-07-10 22:45:59 -04:00
|
|
|
}
|
2023-10-24 10:51:37 -04:00
|
|
|
block(
|
2023-10-24 11:42:42 -04:00
|
|
|
stroke: (paint: color, thickness: 3pt),
|
2023-10-24 10:51:37 -04:00
|
|
|
inset: 1.5em,
|
|
|
|
{
|
|
|
|
header
|
|
|
|
doc
|
|
|
|
}
|
|
|
|
)
|
2023-07-10 22:45:59 -04:00
|
|
|
}
|