Skip to content

Commit

Permalink
Remove CV double
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Meyer committed Dec 30, 2024
1 parent 2f83077 commit 60eb92b
Showing 1 changed file with 0 additions and 112 deletions.
112 changes: 0 additions & 112 deletions _CV/modernpro-cv.typ
Original file line number Diff line number Diff line change
Expand Up @@ -246,115 +246,3 @@
}
//Main Body
}

#let cv-double(
font-type: "Times New Roman",
continue-header: "false",
name: "",
address: "",
lastupdated: "true",
pagecount: "true",
date: none,
contacts: (),
left: "",
right: "",
) = {
set text(font: font-type, weight: "regular")
set cite(form: "full")

if date == none {
let date = [#datetime.today().display()]
}

// last update
let lastupdate(lastupdated, date) = {
if lastupdated == "true" {
set text(8pt, style: "italic", fill: primary-colour, weight: "light")
[Last updated: #date]
}
}

set page(footer: [
#lastupdate(lastupdated, date)
#h(1fr)
#text(9pt, style: "italic", fill: primary-colour, weight: "light")[#name]
#h(1fr)
#if pagecount == "true" {
text(
9pt,
style: "italic",
fill: primary-colour,
weight: "light",
)[Page #counter(page).display("1 / 1", both: true)]
}
])

if continue-header == "true" {
set page(
margin: (left: 1.25cm, right: 1.25cm, top: 2.5cm, bottom: 1.5cm),
header: {
text(
20pt,
fill: primary-colour,
weight: "bold",
top-edge: "baseline",
bottom-edge: "baseline",
baseline: 11pt,
)[#align(center, [#name])]
// address
if address != none {
v(3pt)
text(
11pt,
fill: primary-colour,
weight: "regular",
top-edge: "baseline",
bottom-edge: "baseline",
baseline: 2pt,
)[#align(center, [#address])]
}
v(2pt)
align(center)[#contact-display(contacts)]
v(2pt)
},
header-ascent: 1em,
)
//Main Body
grid(
columns: (1fr, 2fr),
column-gutter: 2em,
left, right,
)
} else {
set page(margin: (left: 1.25cm, right: 1.25cm, top: 1cm, bottom: 1.5cm))
text(
20pt,
fill: primary-colour,
weight: "bold",
top-edge: "baseline",
bottom-edge: "baseline",
baseline: 11pt,
)[#align(center, [#name])]
// address
if address != none {
v(3pt)
text(
11pt,
fill: primary-colour,
weight: "regular",
top-edge: "baseline",
bottom-edge: "baseline",
baseline: 2pt,
)[#align(center, [#address])]
}
v(2pt)
align(center)[#contact-display(contacts)]
v(2pt)
//Main Body
grid(
columns: (1fr, 2fr),
column-gutter: 2em,
left, right,
)
}
}

0 comments on commit 60eb92b

Please sign in to comment.