feat: switch to eugene style
This commit is contained in:
parent
ec13a4a5b3
commit
b92ddd66b2
30
lib.typ
30
lib.typ
@ -3,19 +3,19 @@
|
|||||||
#let DEFAULT_STRONG = 300;
|
#let DEFAULT_STRONG = 300;
|
||||||
#let SMALL_STRONG = 200;
|
#let SMALL_STRONG = 200;
|
||||||
|
|
||||||
#let TITLE_FONT = "Bitter"
|
#let TITLE_FONT = "New Computer Modern"
|
||||||
#let HEADING_FONT = TITLE_FONT
|
#let HEADING_FONT = TITLE_FONT
|
||||||
#let BODY_FONT = "Open Sans"
|
#let BODY_FONT = "New Computer Modern"
|
||||||
|
|
||||||
#let BODY_FONT_SIZE = 10pt
|
#let BODY_FONT_SIZE = 11pt
|
||||||
#let HEADING_FONT_SIZE = 0.95em
|
#let HEADING_FONT_SIZE = 0.95em
|
||||||
#let TITLE_FONT_SIZE = 2em
|
#let TITLE_FONT_SIZE = 2em
|
||||||
|
|
||||||
#let HEADING_LINE_GAP = 3mm
|
#let HEADING_LINE_GAP = 3mm
|
||||||
#let BODY_LINE_HEIGHT = 0.8em
|
#let BODY_LINE_HEIGHT = 0.75em
|
||||||
|
|
||||||
// rest = not top
|
// rest = not top
|
||||||
#let PAGE_MARGINS = (rest: 0.5in, top: 0.4in, left: 0.4in, bottom: 0.4in)
|
#let PAGE_MARGINS = (right: 0.4in, rest: 0.3in)
|
||||||
|
|
||||||
// Format locations.
|
// Format locations.
|
||||||
#let format_location(location) = {
|
#let format_location(location) = {
|
||||||
@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#let indent(content) = {
|
#let indent(content) = {
|
||||||
block(inset: (left: 0.75em, right: 0.5em), content)
|
block(inset: (left: 0em, right: 0em), content)
|
||||||
}
|
}
|
||||||
|
|
||||||
// General entry that is split into a left and right half (for experience and education).
|
// General entry that is split into a left and right half (for experience and education).
|
||||||
@ -31,7 +31,7 @@
|
|||||||
stack(
|
stack(
|
||||||
dir: ttb,
|
dir: ttb,
|
||||||
spacing: 0.9em,
|
spacing: 0.9em,
|
||||||
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
|
grid(columns: (11fr, 5fr), column-gutter: 1cm, {
|
||||||
set strong(delta: DEFAULT_STRONG)
|
set strong(delta: DEFAULT_STRONG)
|
||||||
set align(left)
|
set align(left)
|
||||||
left_content
|
left_content
|
||||||
@ -68,16 +68,12 @@
|
|||||||
none
|
none
|
||||||
}
|
}
|
||||||
cv_entry(left_content: {
|
cv_entry(left_content: {
|
||||||
set par(leading: 0.75em)
|
set par(leading: 0.55em, justify: true)
|
||||||
text(1.1em)[*#role*]
|
text(1.1em)[*#role*]
|
||||||
|
|
||||||
if tools != none {
|
|
||||||
text[ | _ #tools _ ]
|
|
||||||
}
|
|
||||||
|
|
||||||
"\n"
|
"\n"
|
||||||
set strong(delta: SMALL_STRONG)
|
set strong(delta: SMALL_STRONG)
|
||||||
text[*#company*]
|
text[_#company _]
|
||||||
}, right_content: {
|
}, right_content: {
|
||||||
[*#start_date -- #end_date*]
|
[*#start_date -- #end_date*]
|
||||||
|
|
||||||
@ -118,11 +114,15 @@
|
|||||||
// Set name and contact data and format headings
|
// Set name and contact data and format headings
|
||||||
#let template(name, color, doc) = {
|
#let template(name, color, doc) = {
|
||||||
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
set page(margin: PAGE_MARGINS, paper: "us-letter")
|
||||||
set list(indent: 1em, marker: [•])
|
set list(indent: 0.75em, marker: [•])
|
||||||
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
set text(font: (BODY_FONT), BODY_FONT_SIZE)
|
||||||
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
set par(justify: true, leading: BODY_LINE_HEIGHT)
|
||||||
align(center)[
|
align(center)[
|
||||||
#text(size: TITLE_FONT_SIZE, font: TITLE_FONT, fill: color)[*#name*]
|
#text(
|
||||||
|
size: TITLE_FONT_SIZE,
|
||||||
|
font: TITLE_FONT,
|
||||||
|
fill: color,
|
||||||
|
)[#smallcaps[*#name*]]
|
||||||
#block(above: 0em, below: 1em)
|
#block(above: 0em, below: 1em)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user