Compare commits

...

7 Commits

Author SHA1 Message Date
eggy
bfca633917 consistent font size 2024-06-13 23:37:18 -04:00
eggy
af0f13008a feat: increase spacing 2024-06-13 23:25:27 -04:00
eggy
d69e958304 feat: shrink spacing 2024-06-13 23:23:34 -04:00
eggy
509bd8963d feat: update style 2024-06-13 23:20:49 -04:00
eggy
3e5be4cf8f feat: eugene style 3 2024-06-13 23:05:13 -04:00
eggy
dd4006d03d feat: eugene style 2 2024-06-13 22:55:40 -04:00
eggy
b92ddd66b2 feat: switch to eugene style 2024-06-13 22:54:05 -04:00

56
lib.typ
View File

@ -3,19 +3,20 @@
#let DEFAULT_STRONG = 300;
#let SMALL_STRONG = 200;
#let TITLE_FONT = "Bitter"
#let TITLE_FONT = "New Computer Modern"
#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 TITLE_FONT_SIZE = 2em
#let HEADING_LINE_GAP = 3mm
#let BODY_LINE_HEIGHT = 0.8em
#let BODY_LINE_HEIGHT = 0.65em
#let BODY_LINE_SPACING = 0.75em
// 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.
#let format_location(location) = {
@ -23,15 +24,15 @@
}
#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).
#let cv_entry(left_content: none, right_content: none, details: none) = {
stack(
dir: ttb,
spacing: 0.9em,
grid(columns: (11fr, 3fr), column-gutter: 1cm, {
spacing: 0.75em,
grid(columns: (9fr, 5fr), column-gutter: 1cm, {
set strong(delta: DEFAULT_STRONG)
set align(left)
left_content
@ -68,22 +69,13 @@
none
}
cv_entry(left_content: {
set par(leading: 0.75em)
text(1.1em)[*#role*]
if tools != none {
text[ | _ #tools _ ]
}
"\n"
set strong(delta: SMALL_STRONG)
text[*#company*]
set par(justify: true)
text[*#company* | _#role _]
}, right_content: {
[*#start_date -- #end_date*]
if location != none {
"\n" + format_location(location)
}
[#start_date -- #end_date]
// if location != none {
// format_location(location)
// }
}, details: task_list)
}
@ -91,17 +83,17 @@
set strong(delta: DEFAULT_STRONG)
let text_link = if demo_link != none { demo_link } else { repo_link }
if text_link != none {
link(text_link)[#text(1.1em)[*#title*]]
link(text_link)[#text[*#title*]]
} else {
text(1.1em)[*#title*]
text[*#title*]
}
if demo_link != none {
link(demo_link)[#text(1.1em)[ #fa(link-icon) ]]
link(demo_link)[ #fa(link-icon) ]
}
if repo_link != none {
link(repo_link)[#text(1.1em)[ #fa(github) ]]
link(repo_link)[ #fa(github) ]
}
[ | _ #tools _ ]
}
@ -118,11 +110,15 @@
// Set name and contact data and format headings
#let template(name, color, doc) = {
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 par(justify: true, leading: BODY_LINE_HEIGHT)
set par(leading: BODY_LINE_HEIGHT)
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)
]