-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathtemplate.typ
64 lines (52 loc) · 1.58 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
#import "@preview/imprecv:1.0.1": *
#let cvdata = yaml("template.yml")
#let uservars = (
headingfont: "Libertinus Serif",
bodyfont: "Libertinus Serif",
fontsize: 10pt, // https://typst.app/docs/reference/layout/length
linespacing: 6pt, // length
sectionspacing: 0pt, // length
showAddress: true, // https://typst.app/docs/reference/foundations/bool
showNumber: true, // bool
showTitle: true, // bool
headingsmallcaps: false, // bool
sendnote: false, // bool. 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( // https://typst.app/docs/reference/layout/page
paper: "us-letter",
numbering: "1 / 1",
number-align: center,
margin: 1.25cm,
)
// set list(indent: 1em)
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)