Skip to content

Commit

Permalink
enhance: allow custom section titles
Browse files Browse the repository at this point in the history
  • Loading branch information
jskherman committed Jun 14, 2024
1 parent adca81d commit ad1f4b4
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions cv.typ
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@
]
}

#let cvwork(info, isbreakable: true) = {
#let cvwork(info, title: "Work Experience", isbreakable: true) = {
if info.work != none {block[
== Work Experience
== #title
#for w in info.work {
block(width: 100%, breakable: isbreakable)[
// Line 1: Company and Location
Expand Down Expand Up @@ -152,9 +152,9 @@
]}
}

#let cveducation(info, isbreakable: true) = {
#let cveducation(info, title: "Education", isbreakable: true) = {
if info.education != none {block[
== Education
== #title
#for edu in info.education {
let start = utils.strpdate(edu.startDate)
let end = utils.strpdate(edu.endDate)
Expand Down Expand Up @@ -186,9 +186,9 @@
]}
}

#let cvaffiliations(info, isbreakable: true) = {
#let cvaffiliations(info, title: "Leadership and Activities", isbreakable: true) = {
if info.affiliations != none {block[
== Leadership & Activities
== #title
#for org in info.affiliations {
// Parse ISO date strings into datetime objects
let start = utils.strpdate(org.startDate)
Expand Down Expand Up @@ -216,9 +216,9 @@
]}
}

#let cvprojects(info, isbreakable: true) = {
#let cvprojects(info, title: "Projects", isbreakable: true) = {
if info.projects != none {block[
== Projects
== #title
#for project in info.projects {
// Parse ISO date strings into datetime objects
let start = utils.strpdate(project.startDate)
Expand All @@ -242,9 +242,9 @@
]}
}

#let cvawards(info, isbreakable: true) = {
#let cvawards(info, title: "Honors and Awards", isbreakable: true) = {
if info.awards != none {block[
== Honors & Awards
== #title
#for award in info.awards {
// Parse ISO date strings into datetime objects
let date = utils.strpdate(award.date)
Expand All @@ -269,9 +269,9 @@
]}
}

#let cvcertificates(info, isbreakable: true) = {
#let cvcertificates(info, title: "Licenses and Certifications", isbreakable: true) = {
if info.certificates != none {block[
== Licenses & Certifications
== #title

#for cert in info.certificates {
// Parse ISO date strings into datetime objects
Expand All @@ -295,9 +295,9 @@
]}
}

#let cvpublications(info, isbreakable: true) = {
#let cvpublications(info, title: "Research and Publications", isbreakable: true) = {
if info.publications != none {block[
== Research & Publications
== #title
#for pub in info.publications {
// Parse ISO date strings into datetime objects
let date = utils.strpdate(pub.releaseDate)
Expand All @@ -316,9 +316,9 @@
]}
}

#let cvskills(info, isbreakable: true) = {
#let cvskills(info, title: "Skills, Languages, Interests", isbreakable: true) = {
if (info.languages != none) or (info.skills != none) or (info.interests != none) {block(breakable: isbreakable)[
== Skills, Languages, Interests
== #title
#if (info.languages != none) [
#let langs = ()
#for lang in info.languages {
Expand All @@ -337,9 +337,9 @@
]}
}

#let cvreferences(info, isbreakable: true) = {
#let cvreferences(info, title: "References", isbreakable: true) = {
if info.references != none {block[
== References
== #title
#for ref in info.references {
block(width: 100%, breakable: isbreakable)[
#if ref.url != none [
Expand Down

0 comments on commit ad1f4b4

Please sign in to comment.