-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.typ
More file actions
101 lines (94 loc) · 1.96 KB
/
conf.typ
File metadata and controls
101 lines (94 loc) · 1.96 KB
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
// Sections
#let resume(
author: "",
author-position: left,
personal-info-position: left,
location: "",
email: "",
github: "",
linkedin: "",
phone: "",
personal-site: "",
accent-color: "#000000",
font: "New Computer Modern",
paper: "a4",
body,
) = {
// Set some config for the document
set document(author: author, title: author)
set text(
font: font,
size: 9.5pt,
lang: "en",
ligatures: false
)
set page(
margin: (0.5in),
)
set par(justify: true)
// Configure styling for specific elements
show link: underline
show link: set text(
fill: rgb(accent-color),
)
show heading: set text(
fill: rgb(accent-color),
)
show heading.where(level: 1): it => [
#set align(author-position)
#set text(
weight: 700,
size: 20pt,
)
#pad(it.body)
]
show heading.where(level: 2): it => [
#pad(top: 0pt, bottom: -10pt, [#smallcaps(it.body)])
#line(length: 100%, stroke: 1pt)
]
[= #(author)]
let contact-item(value, prefix: "", link-type: "") = {
if value != "" {
if link-type != "" {
link(link-type + value)[#(prefix + value)]
} else {
value
}
}
}
pad(
top: 0.25em,
align(personal-info-position)[
#{
let items = (
contact-item(phone),
contact-item(location),
contact-item(email, link-type: "mailto:"),
contact-item(github, link-type: "https://"),
contact-item(linkedin, link-type: "https://"),
contact-item(personal-site, link-type: "https://"),
)
items.filter(x => x != none).join(" | ")
}
],
)
body
}
#let education(
institution: "", dates: "",
degree: "", location: "",
) = {
[
#strong(institution) #h(1fr) #location \
#emph(degree) #h(1fr) #emph((dates))
]
}
#let role(
title: "", dates: "",
company: "", location: "",
) = {
[
#strong(title) #h(1fr) #dates \
#company #h(1fr) #emph(location)
]
}