15 Commits

Author SHA1 Message Date
Paul Tsouchlos
a5a192acf1 fix: import version in example 2024-07-23 09:37:55 -04:00
Paul Tsouchlos
a2fe9ca40a chore: update doc generation package 2024-07-22 10:50:03 -04:00
Paul Tsouchlos
78a53befb5 fix: theming issues and update docs 2024-07-22 10:49:52 -04:00
Paul Tsouchlos
3845415587 format: auto-formatting 2024-07-22 09:52:18 -04:00
Paul Tsouchlos
650b2b0cec chore: update version in templates 2024-07-22 09:51:15 -04:00
Paul Tsouchlos
4dcb8ab7fd chore: bump version 2024-07-22 09:50:02 -04:00
Paul Tsouchlos
40427ffede fix: don't color resume-entry links 2024-07-22 09:49:51 -04:00
Paul T
2567ecb808 Merge pull request #47 from zundertj/patch-1
Update README example to use 0.4.0
2024-07-21 18:47:27 -04:00
J van Zundert
ab79ab2790 Update README example to use 0.4.0
As a new user (to typst and to modern-cv), I copy-pasted the example, got it working, and then started modifying using features released post 0.1.0 (such as `colored-headers`). It took me a while to figure out that the import is of a very old version.

PS: thank you for this package, works very well.
2024-07-21 09:20:34 +00:00
Paul T
9652a1cb90 Merge pull request #46 from hadim/hadim-patch-1
Tweaks + add new icons
2024-07-15 10:01:26 -04:00
Paul T
a721c30354 feat: use new features in template 2024-07-15 09:58:33 -04:00
Paul T
207a2f37b9 chore: remove spacing
I don't think this added space accomplishes much. Removing for now.
2024-07-15 09:55:53 -04:00
Paul T
aafb3b31f9 fix: remove italics
Italics can be unnecessarily hard to read.
2024-07-15 09:55:32 -04:00
Hadrien Mary
da7aec4451 Tweaks 2024-07-15 09:08:18 -04:00
Paul T
9837139dad Merge pull request #43 from DeveloperPaul123/release/0.4.0
Back-merge: 0.4.0 release
2024-07-10 15:17:41 -04:00
7 changed files with 51 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ See `typst fonts --help` for more information on configuring fonts for `typst` t
Below is a basic example for a simple resume: Below is a basic example for a simple resume:
```typst ```typst
#import "@preview/modern-cv:0.1.0": * #import "@preview/modern-cv:0.5.0": *
#show: resume.with( #show: resume.with(
author: ( author: (

44
lib.typ
View File

@@ -6,6 +6,7 @@
#let color-darkgray = rgb("#333333") #let color-darkgray = rgb("#333333")
#let color-gray = rgb("#5d5d5d") #let color-gray = rgb("#5d5d5d")
#let default-accent-color = rgb("#262F99") #let default-accent-color = rgb("#262F99")
#let default-location-color = rgb("#333333")
// const icons // const icons
#let linkedin-icon = box( #let linkedin-icon = box(
@@ -14,8 +15,15 @@
#let github-icon = box( #let github-icon = box(
fa-icon("github", fill: color-darknight), fa-icon("github", fill: color-darknight),
) )
#let twitter-icon = box(
fa-icon("twitter", fill: color-darknight),
)
#let google-scholar-icon = box(
fa-icon("google-scholar", 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))
/// Helpers /// Helpers
@@ -196,6 +204,7 @@
) )
show heading.where(level: 1): it => [ show heading.where(level: 1): it => [
#set block( #set block(
above: 1em, above: 1em,
below: 1em, below: 1em,
@@ -214,6 +223,7 @@
#text[#strong[#text(color)[#it.body.text]]] #text[#strong[#text(color)[#it.body.text]]]
#box(width: 1fr, line(length: 100%)) #box(width: 1fr, line(length: 100%))
] ]
] ]
show heading.where(level: 2): it => { show heading.where(level: 2): it => {
@@ -275,7 +285,7 @@
let address = { let address = {
set text( set text(
size: 9pt, size: 9pt,
weight: "bold", weight: "regular",
) )
align(center)[ align(center)[
#if ("address" in author) [ #if ("address" in author) [
@@ -297,6 +307,11 @@
) )
#block[ #block[
#align(horizon)[ #align(horizon)[
#if ("birth" in author) [
#birth-icon
#box[#text(author.birth)]
#separator
]
#if ("phone" in author) [ #if ("phone" in author) [
#phone-icon #phone-icon
#box[#text(author.phone)] #box[#text(author.phone)]
@@ -315,9 +330,20 @@
#separator #separator
#linkedin-icon #linkedin-icon
#box[ #box[
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.firstname #author.lastname] #link("https://www.linkedin.com/in/" + author.linkedin)[#author.linkedin]
] ]
] ]
#if ("twitter" in author) [
#separator
#twitter-icon
#box[#link("https://twitter.com/" + author.twitter)[\@#author.twitter]]
]
#if ("scholar" in author) [
#let fullname = str(author.firstname + " " + author.lastname)
#separator
#google-scholar-icon
#box[#link("https://scholar.google.com/citations?user=" + author.scholar)[#fullname]]
]
] ]
] ]
] ]
@@ -349,15 +375,27 @@
/// - location (string): The location of the resume entry /// - location (string): The location of the resume entry
/// - date (string): The date of the resume entry, this can be a range (e.g. "Jan 2020 - Dec 2020") /// - date (string): The date of the resume entry, this can be a range (e.g. "Jan 2020 - Dec 2020")
/// - description (content): The body of the resume entry /// - description (content): The body of the resume entry
/// - title-link (string): The link to use for the title (can be none)
/// - accent-color (color): Override the accent color of the resume-entry
/// - location-color (color): Override the default color of the "location" for a resume entry.
#let resume-entry( #let resume-entry(
title: none, title: none,
location: "", location: "",
date: "", date: "",
description: "", description: "",
title-link: none,
accent-color: default-accent-color, accent-color: default-accent-color,
location-color: default-location-color,
) = { ) = {
let title-content
if type(title-link) == "string" {
title-content = link(title-link)[#title]
} else {
title-content = title
}
pad[ pad[
#justified-header(title, location) #justified-header(title-content, location)
#secondary-justified-header(description, date) #secondary-justified-header(description, date)
] ]
} }

View File

@@ -1,5 +1,5 @@
#import "lib.typ" #import "lib.typ"
#import "@preview/tidy:0.2.0" #import "@preview/tidy:0.3.0"
#let docs = tidy.parse-module( #let docs = tidy.parse-module(
read("lib.typ"), read("lib.typ"),

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.4.0": * #import "@preview/modern-cv:0.5.0": *
#show: coverletter.with( #show: coverletter.with(
author: ( author: (

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.4.0": * #import "@preview/modern-cv:0.5.0": *
#show: coverletter.with( #show: coverletter.with(
author: ( author: (

View File

@@ -1,4 +1,4 @@
#import "@preview/modern-cv:0.4.0": * #import "@preview/modern-cv:0.5.0": *
#show: resume.with( #show: resume.with(
author: ( author: (
@@ -7,6 +7,9 @@
email: "js@example.com", email: "js@example.com",
phone: "(+1) 111-111-1111", phone: "(+1) 111-111-1111",
github: "DeveloperPaul123", github: "DeveloperPaul123",
twitter: "typstapp",
scholar: "",
birth: "January 1, 1990",
linkedin: "Example", linkedin: "Example",
address: "111 Example St. Example City, EX 11111", address: "111 Example St. Example City, EX 11111",
positions: ( positions: (
@@ -27,6 +30,7 @@
location: "Example City, EX", location: "Example City, EX",
date: "2019 - Present", date: "2019 - Present",
description: "Example, Inc.", description: "Example, Inc.",
title-link: "https://github.com/DeveloperPaul123",
) )
#resume-item[ #resume-item[

View File

@@ -1,6 +1,6 @@
[package] [package]
name = "modern-cv" name = "modern-cv"
version = "0.4.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>"]