-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.typ
51 lines (42 loc) · 1.06 KB
/
header.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
// Telephone numbers in Canada/ USA
#let phone_number_format(phone) = {
let number = phone.text
let area = number.slice(0, 3)
let prefix = number.slice(3, 6)
let line_number = number.slice(6)
text(
font: "TeX Gyre Cursor",
"(" + area + ")" + prefix + "-" + line_number
)
}
#let adjusted_line() = {
v(8pt, weak: true)
line(length: 100%)
v(8pt, weak: true)
}
#let social_links(social: ()) = {
for i, item in social {
let href = item.at(0)
let content = item.at(1)
link(href)[#text(font: "TeX Gyre Cursor", " " + content)]
}
}
#let header(
name: "First Last",
address: "6299 South St., Halifax, NS B3H 4R2",
phone: "9021234567",
email: "[email protected]",
social: ()
) = {
set align(right)
text(size: 17pt, weight: "bold", smallcaps(name))
adjusted_line()
set text(font: "Libre Baskerville")
text(size: 10pt,address)
linebreak()
social_links(social: social)
linebreak()
link("tel:" + phone)[#phone_number_format[#phone]]
text(" or ")
link("mailto:" + email)[#text(font: "TeX Gyre Cursor", email)]
}