1 Commits

Author SHA1 Message Date
Paul Tsouchlos
a5a192acf1 fix: import version in example 2024-07-23 09:37:55 -04:00
6 changed files with 49 additions and 99 deletions

View File

@@ -56,11 +56,3 @@ cover-letter = "Сопроводительное письмо"
attached = "Прилагается" attached = "Прилагается"
curriculum-vitae = "Биографическая справка" curriculum-vitae = "Биографическая справка"
sincerely = "Искренне" sincerely = "Искренне"
[lang.zh]
resume = "简历"
dear = "亲爱的"
cover-letter = "求职信"
attached = "附件"
curriculum-vitae = "简历"
sincerely = "真诚的"

114
lib.typ
View File

@@ -21,13 +21,9 @@
#let google-scholar-icon = box( #let google-scholar-icon = box(
fa-icon("google-scholar", fill: color-darknight), fa-icon("google-scholar", fill: color-darknight),
) )
#let orcid-icon = box(
fa-icon("orcid", fill: color-darknight),
)
#let phone-icon = box(fa-icon("square-phone", fill: color-darknight)) #let phone-icon = box(fa-icon("square-phone", fill: color-darknight))
#let email-icon = box(fa-icon("envelope", fill: color-darknight)) #let email-icon = box(fa-icon("envelope", fill: color-darknight))
#let birth-icon = box(fa-icon("cake", fill: color-darknight)) #let birth-icon = box(fa-icon("cake", fill: color-darknight))
#let homepage-icon = box(fa-icon("home", fill: color-darknight))
/// Helpers /// Helpers
@@ -63,50 +59,6 @@
] ]
} }
#let __coverletter_footer(author, language, date, lang_data) = {
set text(
fill: gray,
size: 8pt,
)
__justify_align_3[
#smallcaps[#date]
][
#smallcaps[
#if language == "zh" or language == "ja" [
#author.firstname#author.lastname
] else [
#author.firstname#sym.space#author.lastname
]
#sym.dot.c
#linguify("cover-letter", from: lang_data)
]
][
#counter(page).display()
]
}
#let __resume_footer(author, language, lang_data, date) = {
set text(
fill: gray,
size: 8pt,
)
__justify_align_3[
#smallcaps[#date]
][
#smallcaps[
#if language == "zh" or language == "ja" [
#author.firstname#author.lastname
] else [
#author.firstname#sym.space#author.lastname
]
#sym.dot.c
#linguify("resume", from: lang_data)
]
][
#counter(page).display()
]
}
/// Show a link with an icon, specifically for Github projects /// Show a link with an icon, specifically for Github projects
/// *Example* /// *Example*
/// #example(`resume.github-link("DeveloperPaul123/awesome-resume")`) /// #example(`resume.github-link("DeveloperPaul123/awesome-resume")`)
@@ -190,9 +142,7 @@
date: datetime.today().display("[month repr:long] [day], [year]"), date: datetime.today().display("[month repr:long] [day], [year]"),
accent-color: default-accent-color, accent-color: default-accent-color,
colored-headers: true, colored-headers: true,
show-footer: true,
language: "en", language: "en",
font: ("Source Sans Pro", "Source Sans 3"),
body, body,
) = { ) = {
if type(accent-color) == "string" { if type(accent-color) == "string" {
@@ -207,7 +157,7 @@
) )
set text( set text(
font: font, font: ("Source Sans Pro", "Source Sans 3"),
lang: language, lang: language,
size: 11pt, size: 11pt,
fill: color-darkgray, fill: color-darkgray,
@@ -217,7 +167,27 @@
set page( set page(
paper: "a4", paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm), margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: if show-footer [#__resume_footer(author, language, lang_data, date)] else [], footer: [
#set text(
fill: gray,
size: 8pt,
)
#__justify_align_3[
#smallcaps[#date]
][
#smallcaps[
#if language == "zh" or language == "ja" [
#author.firstname#author.lastname
] else [
#author.firstname#sym.space#author.lastname
]
#sym.dot.c
#linguify("resume", from: lang_data)
]
][
#counter(page).display()
]
],
footer-descent: 0pt, footer-descent: 0pt,
) )
@@ -351,11 +321,6 @@
#email-icon #email-icon
#box[#link("mailto:" + author.email)[#author.email]] #box[#link("mailto:" + author.email)[#author.email]]
] ]
#if ("homepage" in author) [
#separator
#homepage-icon
#box[#link(author.homepage)[#author.homepage]]
]
#if ("github" in author) [ #if ("github" in author) [
#separator #separator
#github-icon #github-icon
@@ -379,11 +344,6 @@
#google-scholar-icon #google-scholar-icon
#box[#link("https://scholar.google.com/citations?user=" + author.scholar)[#fullname]] #box[#link("https://scholar.google.com/citations?user=" + author.scholar)[#fullname]]
] ]
#if ("orcid" in author) [
#separator
#orcid-icon
#box[#link("https://orcid.org/" + author.orcid)[#author.orcid]]
]
] ]
] ]
] ]
@@ -436,9 +396,7 @@
pad[ pad[
#justified-header(title-content, location) #justified-header(title-content, location)
#if description != "" or date != "" [ #secondary-justified-header(description, date)
#secondary-justified-header(description, date)
]
] ]
} }
@@ -507,8 +465,6 @@
date: datetime.today().display("[month repr:long] [day], [year]"), date: datetime.today().display("[month repr:long] [day], [year]"),
accent-color: default-accent-color, accent-color: default-accent-color,
language: "en", language: "en",
font: ("Source Sans Pro", "Source Sans 3"),
show-footer: true,
body, body,
) = { ) = {
if type(accent-color) == "string" { if type(accent-color) == "string" {
@@ -524,7 +480,7 @@
) )
set text( set text(
font: font, font: ("Source Sans Pro", "Source Sans 3"),
lang: language, lang: language,
size: 11pt, size: 11pt,
fill: color-darkgray, fill: color-darkgray,
@@ -534,7 +490,27 @@
set page( set page(
paper: "a4", paper: "a4",
margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm), margin: (left: 15mm, right: 15mm, top: 10mm, bottom: 10mm),
footer: if show-footer [#__coverletter_footer(author, language, date, lang_data)] else [], footer: [
#set text(
fill: gray,
size: 8pt,
)
#__justify_align_3[
#smallcaps[#date]
][
#smallcaps[
#if language == "zh" or language == "ja" [
#author.firstname#author.lastname
] else [
#author.firstname#sym.space#author.lastname
]
#sym.dot.c
#linguify("cover-letter", from: lang_data)
]
][
#counter(page).display()
]
],
footer-descent: 0pt, footer-descent: 0pt,
) )

View File

@@ -1,11 +1,10 @@
#import "@preview/modern-cv:0.6.0": * #import "@preview/modern-cv:0.5.0": *
#show: coverletter.with( #show: coverletter.with(
author: ( author: (
firstname: "John", firstname: "John",
lastname: "Smith", lastname: "Smith",
email: "js@gmail.com", email: "js@gmail.com",
homepage: "https://example.com",
phone: "(+1) 111-111-1111", phone: "(+1) 111-111-1111",
github: "DeveloperPaul123", github: "DeveloperPaul123",
linkedin: "John Smith", linkedin: "John Smith",
@@ -17,8 +16,6 @@
), ),
profile-picture: image("./profile.png"), profile-picture: image("./profile.png"),
language: "en", language: "en",
font: "Times New Roman",
// show-footer: false, // Uncomment to hide footer
) )
#hiring-entity-info(entity-info: ( #hiring-entity-info(entity-info: (

View File

@@ -1,11 +1,10 @@
#import "@preview/modern-cv:0.6.0": * #import "@preview/modern-cv:0.5.0": *
#show: coverletter.with( #show: coverletter.with(
author: ( author: (
firstname: "John", firstname: "John",
lastname: "Smith", lastname: "Smith",
email: "js@gmail.com", email: "js@gmail.com",
homepage: "https://example.com",
phone: "(+1) 111-111-1111", phone: "(+1) 111-111-1111",
github: "DeveloperPaul123", github: "DeveloperPaul123",
linkedin: "John Smith", linkedin: "John Smith",

View File

@@ -1,16 +1,14 @@
#import "@preview/modern-cv:0.6.0": * #import "@preview/modern-cv:0.5.0": *
#show: resume.with( #show: resume.with(
author: ( author: (
firstname: "John", firstname: "John",
lastname: "Smith", lastname: "Smith",
email: "js@example.com", email: "js@example.com",
homepage: "https://example.com",
phone: "(+1) 111-111-1111", phone: "(+1) 111-111-1111",
github: "DeveloperPaul123", github: "DeveloperPaul123",
twitter: "typstapp", twitter: "typstapp",
scholar: "", scholar: "",
orcid: "0000-0000-0000-000X",
birth: "January 1, 1990", birth: "January 1, 1990",
linkedin: "Example", linkedin: "Example",
address: "111 Example St. Example City, EX 11111", address: "111 Example St. Example City, EX 11111",
@@ -23,7 +21,6 @@
date: datetime.today().display(), date: datetime.today().display(),
language: "en", language: "en",
colored-headers: true, colored-headers: true,
show-footer: false,
) )
= Experience = Experience
@@ -55,17 +52,6 @@
- #lorem(25) - #lorem(25)
] ]
#resume-entry(
title: "Intern",
location: "Example City, EX",
)
#resume-item[
- #lorem(20)
- #lorem(15)
- #lorem(25)
]
= Projects = Projects
#resume-entry( #resume-entry(

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "modern-cv" name = "modern-cv"
version = "0.6.0" version = "0.5.0"
compiler = "0.11.0" compiler = "0.11.0"
entrypoint = "lib.typ" entrypoint = "lib.typ"
authors = ["Paul Tsouchlos <https://github.com/DeveloperPaul123>"] authors = ["Paul Tsouchlos <https://github.com/DeveloperPaul123>"]