1 Commits

Author SHA1 Message Date
Paul T
3b7c1f45c1 feature: add another coverletter example 2024-04-02 17:53:36 -04:00
15 changed files with 211 additions and 425 deletions

View File

@@ -1,16 +0,0 @@
[
{
"version" : 1
},
{
"action" : {
"script" : "${repo:path}/scripts/format_typst.ps1",
"showOutput" : true,
"type" : "sh",
"waitForExit" : true
},
"name" : "Format",
"os" : "windows",
"target" : "revision"
}
]

View File

@@ -1,7 +0,0 @@
# Integration with Issue Tracker
#
# (note that '\' need to be escaped).
[issuetracker "Github"]
regex = "#(\\d+)"
url = "https://github.com/DeveloperPaul123/modern-cv/issues/$1"

View File

@@ -77,29 +77,4 @@ Documentation for this template is published with each commit. See the attached
| Resumes | Cover letters |
| --- | --- |
| ![Resume](assets/images/resume.png) | ![Cover Letter](assets/images/coverletter.png) |
| ![Resume 2](assets/images/resume2.png) | ![Cover Letter 2](assets/images/coverletter2.png)|
## Building and Testing Locally
To build and test the project locally, you will need to install the `typst` CLI. You can find instructions on how to do this [here](https://typst.app/docs/getting-started).
With typst installed you can make changes to `lib.typ` and then `install_package_locally.ps1` to install the package locally. Change the import statements in the template files to point to the local package:
```typst
#import "@local/modern-cv:0.3.0": *
````
Note that the script parses the `typst.toml` to determine the version number and the folder the local files are installed to.
### Formatting
This project uses [typstyle](https://github.com/Enter-tainer/typstyle) to format the code. The script `format_typst.ps1` will format all the `*.typ` files in the project. Be sure to install `typstyle` before running the script.
## License
The project is licensed under the MIT license. See [LICENSE](LICENSE) for more details.
## Author
| [<img src="https://avatars0.githubusercontent.com/u/6591180?s=460&v=4" width="100"><br><sub>@DeveloperPaul123</sub>](https://github.com/DeveloperPaul123) |
|:----:|
| | ![Cover Letter 2](assets/images/coverletter2.png)|

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 KiB

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

View File

@@ -1,30 +0,0 @@
[conf]
default-lang = "en"
[lang.en]
resume = "Résumé"
dear = "Dear"
cover-letter = "Cover Letter"
attached = "Attached"
curriculum-vitae = "Curriculum Vitae"
[lang.de]
resume = "Lebenslauf"
dear = "Sehr geehrte"
cover-letter = "Anschreiben"
attached = "Angehängt"
curriculum-vitae = "Lebenslauf"
[lang.gr]
resume = "Βιογραφικό"
dear = "Αγαπητέ"
cover-letter = "Συνοδευτική Επιστολή"
attached = "Συνημμένο"
curriculum-vitae = "Βιογραφικό"
[lang.sp]
resume = "Currículum"
dear = "Estimado"
cover-letter = "Carta de Presentación"
attached = "Adjunto"
curriculum-vitae = "Currículum"

302
lib.typ
View File

@@ -1,5 +1,4 @@
#import "@preview/fontawesome:0.1.0": *
#import "@preview/linguify:0.4.0": *
// const color
#let color-darknight = rgb("#131A28")
@@ -8,12 +7,8 @@
#let default-accent-color = rgb("#262F99")
// const icons
#let linkedin-icon = box(
fa-icon("linkedin", fa-set: "Brands", fill: color-darknight),
)
#let github-icon = box(
fa-icon("github", fa-set: "Brands", fill: color-darknight),
)
#let linkedin-icon = box(fa-icon("linkedin", fa-set: "Brands", fill: color-darknight))
#let github-icon = box(fa-icon("github", fa-set: "Brands", fill: color-darknight))
// for some reason this icon doesn't work with fa-icon, so we use the local version
#let phone-icon = box(image("assets/icons/square-phone-solid.svg"))
#let email-icon = box(fa-icon("envelope", fill: color-darknight))
@@ -55,36 +50,28 @@
/// Show a link with an icon, specifically for Github projects
/// *Example*
/// #example(`resume.github-link("DeveloperPaul123/awesome-resume")`)
/// - github-path (string): The path to the Github project (e.g. "DeveloperPaul123/awesome-resume")
/// - github_path (string): The path to the Github project (e.g. "DeveloperPaul123/awesome-resume")
/// -> none
#let github-link(github-path) = {
#let github-link(github_path) = {
set box(height: 11pt)
align(right + horizon)[
#fa-icon("github", fa-set: "Brands", fill: color-darkgray) #link(
"https://github.com/" + github-path,
github-path,
)
#fa-icon("github", fa-set: "Brands", fill: color-darkgray) #link("https://github.com/" + github_path, github_path)
]
}
/// Right section for the justified headers
/// - body (content): The body of the right header
#let secondary-right-header(body) = {
set text(
size: 11pt,
weight: "medium",
)
/// - accent_color (color): The accent color to color the text with. This defaults to the default-accent-color
#let secondary-right-header(body, accent_color: default-accent-color) = {
set text(size: 11pt, weight: "medium")
body
}
/// Right section of a tertiaty headers.
/// - body (content): The body of the right header
#let tertiary-right-header(body) = {
set text(
weight: "light",
size: 9pt,
)
set text(weight: "light", size: 9pt)
body
}
@@ -92,10 +79,7 @@
/// - primary (content): The primary section of the header
/// - secondary (content): The secondary section of the header
#let justified-header(primary, secondary) = {
set block(
above: 0.7em,
below: 0.7em,
)
set block(above: 0.7em, below: 0.7em)
pad[
#__justify_align[
== #primary
@@ -125,25 +109,16 @@
///
/// - author (content): Structure that takes in all the author's information
/// - date (string): The date the resume was created
/// - accent-color (color): The accent color of the resume
/// - colored-headers (boolean): Whether the headers should be colored or not
/// - language (string): The language of the resume, defaults to "en". See lang.toml for available languages
/// - accent_color (color): The accent color of the resume
/// - colored_headers (boolean): Whether the headers should be colored or not
/// - body (content): The body of the resume
/// -> none
#let resume(
author: (:),
date: datetime.today().display("[month repr:long] [day], [year]"),
accent-color: default-accent-color,
colored-headers: true,
language: "en",
body,
) = {
if type(accent-color) == "string" {
accent-color = rgb(accent-color)
}
let lang_data = toml("lang.toml")
accent_color: default-accent-color,
colored_headers : true,
body) = {
set document(
author: author.firstname + " " + author.lastname,
title: "resume",
@@ -151,20 +126,17 @@
set text(
font: ("Source Sans Pro"),
lang: language,
lang: "en",
size: 11pt,
fill: color-darkgray,
fallback: true,
fallback: true
)
set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: [
#set text(
fill: gray,
size: 8pt,
)
#set text(fill: gray, size: 8pt)
#__justify_align_3[
#smallcaps[#date]
][
@@ -172,7 +144,7 @@
#author.firstname
#author.lastname
#sym.dot.c
#linguify("resume", from: lang_data)
#"Résumé"
]
][
#counter(page).display()
@@ -182,10 +154,7 @@
)
// set paragraph spacing
show par: set block(
above: 0.75em,
below: 0.75em,
)
show par: set block(above: 0.75em, below: 0.75em)
set par(justify: true)
set heading(
@@ -193,42 +162,27 @@
outlined: false,
)
show heading.where(level: 1): it => [
#set block(
above: 1em,
below: 1em,
)
show heading.where(level:1): it => [
#set block(above: 1em, below: 1em)
#set text(
size: 16pt,
weight: "regular",
weight: "regular"
)
#align(left)[
#let color = if colored-headers {
accent-color
} else {
color-darkgray
}
#let color = if colored_headers { accent_color } else { color-darkgray }
#text[#strong[#text(color)[#it.body.text]]]
#box(width: 1fr, line(length: 100%))
]
]
show heading.where(level: 2): it => {
set text(
color-darkgray,
size: 12pt,
style: "normal",
weight: "bold",
)
set text(color-darkgray, size: 12pt, style: "normal", weight: "bold")
it.body
}
show heading.where(level: 3): it => {
set text(
size: 10pt,
weight: "regular",
)
set text(size: 10pt, weight: "regular")
smallcaps[#it.body]
}
@@ -236,12 +190,8 @@
align(center)[
#pad(bottom: 5pt)[
#block[
#set text(
size: 32pt,
style: "normal",
font: ("Roboto"),
)
#text(fill: accent-color, weight: "thin")[#author.firstname]
#set text(size: 32pt, style: "normal", font: ("Roboto"))
#text(accent_color, weight: "thin")[#author.firstname]
#text(weight: "bold")[#author.lastname]
]
]
@@ -250,14 +200,14 @@
let positions = {
set text(
accent-color,
accent_color,
size: 9pt,
weight: "regular",
weight: "regular"
)
align(center)[
#smallcaps[
#author.positions.join(
text[#" "#sym.dot.c#" "],
text[#" "#sym.dot.c#" "]
)
]
]
@@ -266,7 +216,7 @@
let address = {
set text(
size: 9pt,
weight: "bold",
weight: "bold"
)
align(center)[
#author.address
@@ -279,28 +229,17 @@
let separator = box(width: 5pt)
align(center)[
#set text(
size: 9pt,
weight: "regular",
style: "normal",
)
#set text(size: 9pt, weight: "regular", style: "normal")
#block[
#align(horizon)[
#if author.phone != none [
#phone-icon
#box[#text(author.phone)]
#separator
]
#if author.email != none [
#email-icon
#box[#link("mailto:" + author.email)[#author.email]]
]
#if author.github != none [
#separator
#github-icon
#box[#link("https://github.com/" + author.github)[#author.github]]
]
#if author.linkedin != none [
#separator
#linkedin-icon
#box[
@@ -309,7 +248,6 @@
]
]
]
]
}
name
@@ -323,12 +261,7 @@
/// This formats the item for the resume entries. Typically your body would be a bullet list of items. Could be your responsibilities at a company or your academic achievements in an educational background section.
/// - body (content): The body of the resume entry
#let resume-item(body) = {
set text(
size: 10pt,
style: "normal",
weight: "light",
fill: color-darknight,
)
set text(size: 10pt, style: "normal", weight: "light", fill: color-darknight)
set par(leading: 0.65em)
body
}
@@ -342,8 +275,7 @@
title: none,
location: "",
date: "",
description: "",
accent-color: default-accent-color,
description: ""
) = {
pad[
#justified-header(title, location)
@@ -355,11 +287,7 @@
/// *Example:*
/// #example(`resume.resume-gpa("3.5", "4.0")`)
#let resume-gpa(numerator, denominator) = {
set text(
size: 12pt,
style: "italic",
weight: "light",
)
set text(size: 12pt, style: "italic", weight: "light")
text[Cumulative GPA: #box[#strong[#numerator] / #denominator]]
}
@@ -388,11 +316,7 @@
== #category
],
align(left)[
#set text(
size: 11pt,
style: "normal",
weight: "light",
)
#set text(size: 11pt, style: "normal", weight: "light")
#items.join(", ")
],
)
@@ -406,46 +330,35 @@
/// Cover letter template that is inspired by the Awesome CV Latex template by posquit0. This template can loosely be considered a port of the original Latex template.
/// This coverletter template is designed to be used with the resume template.
/// - author (content): Structure that takes in all the author's information
/// - profile-picture (image): The profile picture of the author. This will be cropped to a circle and should be square in nature.
/// - profile_picture (image): The profile picture of the author. This will be cropped to a circle and should be square in nature.
/// - date (date): The date the cover letter was created
/// - accent-color (color): The accent color of the cover letter
/// - accent_color (color): The accent color of the cover letter
/// - body (content): The body of the cover letter
#let coverletter(
author: (:),
profile-picture: image,
profile_picture: image,
date: datetime.today().display("[month repr:long] [day], [year]"),
accent-color: default-accent-color,
language: "en",
body,
accent_color: default-accent-color,
body
) = {
if type(accent-color) == "string" {
accent-color = rgb(accent-color)
}
// language data
let lang_data = toml("lang.toml")
set document(
author: author.firstname + " " + author.lastname,
title: "cover-letter",
title: "resume",
)
set text(
font: ("Source Sans Pro"),
lang: language,
lang: "en",
size: 11pt,
fill: color-darkgray,
fallback: true,
fallback: true
)
set page(
paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: [
#set text(
fill: gray,
size: 8pt,
)
#set text(fill: gray, size: 8pt)
#__justify_align_3[
#smallcaps[#date]
][
@@ -453,7 +366,7 @@
#author.firstname
#author.lastname
#sym.dot.c
#linguify("cover-letter", from: lang_data)
#"Cover Letter"
]
][
#counter(page).display()
@@ -463,10 +376,7 @@
)
// set paragraph spacing
show par: set block(
above: 0.75em,
below: 0.75em,
)
show par: set block(above: 0.75em, below: 0.75em)
set par(justify: true)
set heading(
@@ -475,17 +385,14 @@
)
show heading: it => [
#set block(
above: 1em,
below: 1em,
)
#set block(above: 1em, below: 1em)
#set text(
size: 16pt,
weight: "regular",
weight: "regular"
)
#align(left)[
#text[#strong[#text(accent-color)[#it.body.text]]]
#text[#strong[#text(accent_color)[#it.body.text]]]
#box(width: 1fr, line(length: 100%))
]
]
@@ -494,12 +401,8 @@
align(right)[
#pad(bottom: 5pt)[
#block[
#set text(
size: 32pt,
style: "normal",
font: ("Roboto"),
)
#text(accent-color, weight: "thin")[#author.firstname]
#set text(size: 32pt, style: "normal", font: ("Roboto"))
#text(accent_color, weight: "thin")[#author.firstname]
#text(weight: "bold")[#author.lastname]
]
]
@@ -508,14 +411,14 @@
let positions = {
set text(
accent-color,
accent_color,
size: 9pt,
weight: "regular",
weight: "regular"
)
align(right)[
#smallcaps[
#author.positions.join(
text[#" "#sym.dot.c#" "],
text[#" "#sym.dot.c#" "]
)
]
]
@@ -525,7 +428,7 @@
set text(
size: 9pt,
weight: "bold",
fill: color-gray,
fill: color-gray
)
align(right)[
#author.address
@@ -538,37 +441,23 @@
let separator = [#box(sym.bar.v)]
align(right)[
#set text(
size: 8pt,
weight: "light",
style: "normal",
)
#set text(size: 8pt, weight: "light", style: "normal")
#block[
#align(horizon)[
#stack(
dir: ltr,
spacing: 0.5em,
if author.phone != none [
#phone-icon
#box[#text(author.phone)]
#separator
],
if author.email != none [
#email-icon
#box[#link("mailto:" + author.email)[#author.email]]
],
if author.github != none [
#separator
#github-icon
#box[#link("https://github.com/" + author.github)[#author.github]]
],
if author.linkedin != none [
#separator
#linkedin-icon
#box[
#stack(dir: ltr, spacing: 0.5em,
phone-icon,
box[#text(author.phone)],
separator,
email-icon,
box[#link("mailto:" + author.email)[#author.email]],
separator,
github-icon,
box[#link("https://github.com/" + author.github)[#author.github]],
separator,
linkedin-icon,
box[
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.firstname #author.lastname]
]
],
)
]
]
@@ -576,37 +465,27 @@
}
let letter-heading = {
grid(
columns: (1fr, 2fr),
grid(columns: (1fr, 2fr),
rows: (100pt),
align(left + horizon)[
#block(
clip: true,
stroke: 0pt,
radius: 2cm,
width: 4cm,
height: 4cm,
profile-picture,
)
align(left+horizon)[
#block(clip: true, stroke: 0pt, radius: 2cm,
width: 4cm, height: 4cm, profile_picture)
],
[
#name
#positions
#address
#contacts
],
]
)
}
let letter-conclusion = {
let letter_conclusion = {
align(bottom)[
#pad(bottom: 2em)[
#text(weight: "light")[Sincerely,] \
#text(weight: "bold")[#author.firstname #author.lastname] \ \
#text(weight: "light", style: "italic")[ #linguify(
"attached",
from: lang_data,
)#sym.colon #linguify("curriculum-vitae", from: lang_data)]
#text(weight: "light", style: "italic")[Attached: Curriculum Vitae]
]
]
}
@@ -615,47 +494,42 @@
letter-heading
body
linebreak()
letter-conclusion
letter_conclusion
}
/// Cover letter heading that takes in the information for the hiring company and formats it properly.
/// - entity-info (content): The information of the hiring entity including the company name, the target (who's attention to), street address, and city
/// - entity_info (content): The information of the hiring entity including the company name, the target (who's attention to), street address, and city
/// - date (date): The date the letter was written (defaults to the current date)
#let hiring-entity-info(
entity-info: (:),
date: datetime.today().display("[month repr:long] [day], [year]"),
) = {
#let hiring-entity-info(entity_info: (:), date: datetime.today().display("[month repr:long] [day], [year]")) = {
set par(leading: 1em)
pad(top: 1.5em, bottom: 1.5em)[
#__justify_align[
#text(weight: "bold", size: 12pt)[#entity-info.target]
#text(weight: "bold", size: 12pt)[#entity_info.target]
][
#text(weight: "light", style: "italic", size: 9pt)[#date]
]
#pad(top: 0.65em, bottom: 0.65em)[
#text(weight: "regular", fill: color-gray, size: 9pt)[
#smallcaps[#entity-info.name] \
#entity-info.street-address \
#entity-info.city \
#smallcaps[#entity_info.name] \
#entity_info.street_address \
#entity_info.city \
]
]
]
}
/// Letter heading for a given job position and addressee.
/// - job-position (string): The job position you are applying for
/// - job_position (string): The job position you are applying for
/// - addressee (string): The person you are addressing the letter to
#let letter-heading(job-position: "", addressee: "") = {
let lang_data = toml("lang.toml")
#let letter-heading(job_position: "", addressee: "") = {
// TODO: Make this adaptable to content
underline(evade: false, stroke: 0.5pt, offset: 0.3em)[
#text(weight: "bold", size: 12pt)[Job Application for #job-position]
#text(weight: "bold", size: 12pt)[Job Application for #job_position]
]
pad(top: 1em, bottom: 1em)[
#text(weight: "light", fill: color-gray)[
#linguify("dear", from: lang_data) #addressee,
Dear #addressee,
]
]
}

View File

@@ -4,6 +4,6 @@
#let docs = tidy.parse-module(
read("lib.typ"),
name: "Modern CV",
scope: (resume: lib),
scope: (resume: lib)
)
#tidy.show-module(docs)

View File

@@ -1,5 +0,0 @@
# requires typstyle to be installed
# cargo install typstyle
# get all *.typ files and format them
Get-ChildItem -Path $PSScriptRoot/../*.typ -Recurse | ForEach-Object { typstyle -i $_.FullName }

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.3.0": *
#import "@preview/modern-cv:0.2.0":*
#show: coverletter.with(
author: (
@@ -11,23 +11,24 @@
address: "111 Example St. Apt. 111, Example City, EX 11111",
positions: (
"Software Engineer",
"Full Stack Developer",
"Full Stack Developer"
)
),
),
profile-picture: image("./profile.png"),
language: "en",
profile_picture: image("./profile.png")
)
#hiring-entity-info(entity-info: (
#hiring-entity-info(
entity_info: (
target: "Company Recruitement Team",
name: "Google, Inc.",
street-address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043",
))
street_address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043"
)
)
#letter-heading(
job-position: "Software Engineer",
addressee: "Sir or Madame",
job_position: "Software Engineer",
addressee: "Sir or Madame"
)
= About Me

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.3.0": *
#import "@preview/modern-cv:0.2.0":*
#show: coverletter.with(
author: (
@@ -11,23 +11,24 @@
address: "111 Example St. Apt. 111, Example City, EX 11111",
positions: (
"Software Engineer",
"Full Stack Developer",
"Full Stack Developer"
)
),
),
profile-picture: none,
language: "en",
profile_picture: none
)
#hiring-entity-info(entity-info: (
#hiring-entity-info(
entity_info: (
target: "Company Recruitement Team",
name: "Google, Inc.",
street-address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043",
))
street_address: "1600 AMPHITHEATRE PARKWAY",
city: "MOUNTAIN VIEW, CA 94043"
)
)
#letter-heading(
job-position: "Software Engineer",
addressee: "Sir or Madame",
job_position: "Software Engineer",
addressee: "Sir or Madame"
)
#coverletter-content[

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.3.0": *
#import "@preview/modern-cv:0.2.0": *
#show: resume.with(
author: (
@@ -12,12 +12,11 @@
positions: (
"Software Engineer",
"Software Architect",
"Developer",
),
"Developer"
)
),
date: datetime.today().display(),
language: "en",
colored-headers: true,
colored_headers: true
)
= Experience
@@ -26,7 +25,7 @@
title: "Senior Software Engineer",
location: "Example City, EX",
date: "2019 - Present",
description: "Example, Inc.",
description: "Example, Inc."
)
#resume-item[
@@ -39,7 +38,7 @@
title: "Software Engineer",
location: "Example City, EX",
date: "2011 - 2019",
description: "Previous Company, Inc.",
description: "Previous Company, Inc."
)
#resume-item[
@@ -54,7 +53,7 @@
title: "Thread Pool C++ Library",
location: [#github-link("DeveloperPaul123/thread-pool")],
date: "May 2021 - Present",
description: "Designer/Developer",
description: "Designer/Developer"
)
#resume-item[
@@ -66,7 +65,7 @@
title: "Event Bus C++ Library",
location: github-link("DeveloperPaul123/eventbus"),
date: "Sep. 2019 - Present",
description: "Designer/Developer",
description: "Designer/Developer"
)
#resume-item[
@@ -76,15 +75,9 @@
= Skills
#resume-skill-item(
"Languages",
(strong("C++"), strong("Python"), "Java", "C#", "JavaScript", "TypeScript"),
)
#resume-skill-item("Languages", (strong("C++"), strong("Python"), "Java", "C#", "JavaScript", "TypeScript"))
#resume-skill-item("Spoken Languages", (strong("English"), "Spanish"))
#resume-skill-item(
"Programs",
(strong("Excel"), "Word", "Powerpoint", "Visual Studio"),
)
#resume-skill-item("Programs", (strong("Excel"),"Word", "Powerpoint", "Visual Studio"))
= Education
@@ -92,7 +85,7 @@
title: "Example University",
location: "Example City, EX",
date: "August 2014 - May 2019",
description: "B.S. in Computer Science",
description: "B.S. in Computer Science"
)
#resume-item[

View File

@@ -1,6 +1,6 @@
[package]
name = "modern-cv"
version = "0.3.0"
version = "0.2.0"
compiler = "0.11.0"
entrypoint = "lib.typ"
authors = ["Paul Tsouchlos <https://github.com/DeveloperPaul123>"]
@@ -9,7 +9,7 @@ description = "A modern resume template based on the Awesome-CV Latex template."
keywords = ["CV", "Curriculum Vitae", "Resume", "Minimalistic", "Professional", "Modern"]
categories = ["cv"]
disciplines = []
exclude = ["resume-documentation*", "scripts*", "assets/images/*"]
exclude = ["resume-documentation*", "scripts*"]
homepage = "https://github.com/DeveloperPaul123/modern-cv"
repository = "https://github.com/DeveloperPaul123/modern-cv"