Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
#import "@preview/scienceicons:0.0.6": orcid-icon
#let resume( author: "", author-position: left, personal-info-position: left, pronouns: "", location: "", email: "", github: "", linkedin: "", phone: "", personal-site: "", orcid: "", accent-color: "#000000", font: "New Computer Modern", paper: "us-letter", body,) = {
// Sets document metadata set document(author: author, title: author)
// Document-wide formatting, including font and margins set text( // LaTeX style font font: font, size: 10pt, lang: "en", // Disable ligatures so ATS systems do not get confused when parsing fonts. ligatures: false )
// Reccomended to have 0.5in margin on all sides set page( margin: (0.5in), paper: paper, )
// Link styles show link: underline
// Small caps for section titles show heading.where(level: 2): it => [ #pad(top: 0pt, bottom: -10pt, [#smallcaps(it.body)]) #line(length: 100%, stroke: 1pt) ]
// Accent Color Styling show heading: set text( fill: rgb(accent-color), )
show link: set text( fill: rgb(accent-color), )
// Name will be aligned left, bold and big show heading.where(level: 1): it => [ #set align(author-position) #set text( weight: 700, size: 20pt, ) #pad(it.body) ]
// Level 1 Heading [= #(author)]
// Personal Info Helper let contact-item(value,link-name: "", prefix: "", link-type: "") = { if value != "" { if link-type != "" { if link-name == "" { link(link-type + value)[#(prefix + value)] } else { link(link-type + value)[#(link-name)] } } else { value } } }
// Personal Info pad( top: 0.25em, align(personal-info-position)[ #{ let items = ( contact-item(pronouns), contact-item(phone), contact-item(location), contact-item(email,link-type: "mailto:"), contact-item(personal-site, link-type: "https://"), contact-item(github,link-name: "Github", link-type: "https://"), contact-item(linkedin,link-name: "Linkedin", link-type: "https://"), contact-item(orcid, prefix: [#orcid-icon(color: rgb("#AECD54"))orcid.org/], link-type: "https://orcid.org/"), ) items.filter(x => x != none).join(" | ") } ], )
// Main body. set par(justify: true)
body}
// Generic two by two component for resume#let generic-two-by-two( top-left: "", top-right: "", bottom-left: "", bottom-right: "",) = { [ #top-left #h(1fr) #top-right \ #bottom-left #h(1fr) #bottom-right ]}
// Generic one by two component for resume#let generic-one-by-two( left: "", right: "",) = { [ #left #h(1fr) #right ]}
// Cannot just use normal --- ligature becuase ligatures are disabled for good reasons#let dates-helper( start-date: "", end-date: "",) = { start-date + " " + $dash.em$ + " " + end-date}
// Section components below#let edu( institution: "", dates: "", degree: "", gpa: "", location: "", // Makes dates on upper right like rest of components consistent: false,) = { if consistent { // edu-constant style (dates top-right, location bottom-right) generic-two-by-two( top-left: strong(institution), top-right: dates, bottom-left: emph(degree), bottom-right: emph(location), ) } else { // original edu style (location top-right, dates bottom-right) generic-two-by-two( top-left: strong(institution), top-right: location, bottom-left: emph(degree), bottom-right: emph(dates), ) }}
#let work( title: "", dates: "", company: "", location: "", tools: "",) = { generic-two-by-two( top-left: strong(title), top-right: dates, bottom-left: text()[#company | #text()[ _ #tools _]] , bottom-right: emph(location), )}
#let project( role: "", name: "", url: "", dates: "", tools: "",) = { generic-one-by-two( left: { if role == "" { [*#name* |_ #tools _#if url != "" and dates != "" [ (#link("https://" + url)[#url])]] } else { [*#role*, #name #if url != "" and dates != "" [ (#link("https://" + url)[#url])]] } }, right: { if dates == "" and url != "" { link("https://" + url)[#url] } else { dates } }, )}
#let certificates( name: "", issuer: "", url: "", date: "",) = { [ *#name*, #issuer #if url != "" { [ (#link("https://" + url)[#url])] } #h(1fr) #date ]}
#let extracurriculars( activity: "", dates: "", tools: "") = { generic-one-by-two( left: text()[*#activity* | _ #tools _], right: dates, )}