forked from jskherman/imprecv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.typ
62 lines (51 loc) · 1.54 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
#import "@preview/imprecv:1.0.1": *
#let cvdata = yaml("template.yml")
#let uservars = (
headingfont: "Linux Libertine",
bodyfont: "Linux Libertine",
fontsize: 10pt, // 10pt, 11pt, 12pt
linespacing: 6pt,
sectionspacing: 0pt,
showAddress: true, // true/false show address in contact info
showNumber: true, // true/false show phone number in contact info
showTitle: true, // true/false show title in heading
headingsmallcaps: false, // true/false use small caps for headings
sendnote: false, // set to false to have sideways endnote
)
// setrules and showrules can be overridden by re-declaring it here
// #let setrules(doc) = {
// // add custom document style rules here
//
// doc
// }
#let customrules(doc) = {
// add custom document style rules here
set page(
paper: "us-letter", // a4, us-letter
numbering: "1 / 1",
number-align: center, // left, center, right
margin: 1.25cm, // 1.25cm, 1.87cm, 2.5cm
)
doc
}
#let cvinit(doc) = {
doc = setrules(uservars, doc)
doc = showrules(uservars, doc)
doc = customrules(doc)
doc
}
// each section body can be overridden by re-declaring it here
// #let cveducation = []
// ========================================================================== //
#show: doc => cvinit(doc)
#cvheading(cvdata, uservars)
#cvwork(cvdata)
#cveducation(cvdata)
#cvaffiliations(cvdata)
#cvprojects(cvdata)
#cvawards(cvdata)
#cvcertificates(cvdata)
#cvpublications(cvdata)
#cvskills(cvdata)
#cvreferences(cvdata)
#endnote(uservars)