diff --git a/_CV/modernpro-cv.typ b/_CV/modernpro-cv.typ index 47f18e6..f621a91 100644 --- a/_CV/modernpro-cv.typ +++ b/_CV/modernpro-cv.typ @@ -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, - ) - } -}