8 Commits

Author SHA1 Message Date
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
3 changed files with 44 additions and 4 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:
```typst
#import "@preview/modern-cv:0.1.0": *
#import "@preview/modern-cv:0.4.0": *
#show: resume.with(
author: (

42
lib.typ
View File

@@ -6,6 +6,7 @@
#let color-darkgray = rgb("#333333")
#let color-gray = rgb("#5d5d5d")
#let default-accent-color = rgb("#262F99")
#let default-location-color = rgb("#000")
// const icons
#let linkedin-icon = box(
@@ -14,8 +15,15 @@
#let github-icon = box(
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 email-icon = box(fa-icon("envelope", fill: color-darknight))
#let birth-icon = box(fa-icon("cake", fill: color-darknight))
/// Helpers
@@ -196,6 +204,7 @@
)
show heading.where(level: 1): it => [
#set block(
above: 1em,
below: 1em,
@@ -214,6 +223,7 @@
#text[#strong[#text(color)[#it.body.text]]]
#box(width: 1fr, line(length: 100%))
]
]
show heading.where(level: 2): it => {
@@ -275,7 +285,7 @@
let address = {
set text(
size: 9pt,
weight: "bold",
weight: "regular"
)
align(center)[
#if ("address" in author) [
@@ -297,6 +307,11 @@
)
#block[
#align(horizon)[
#if ("birth" in author) [
#birth-icon
#box[#text(author.birth)]
#separator
]
#if ("phone" in author) [
#phone-icon
#box[#text(author.phone)]
@@ -315,9 +330,20 @@
#separator
#linkedin-icon
#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]]
]
]
]
]
@@ -355,9 +381,19 @@
date: "",
description: "",
accent-color: default-accent-color,
location-color: default-location-color,
title-link: none
) = {
let title-content
if type(title-link) == "string" {
title-content = link(title-link)[#text(fill: rgb("#000"))[#title]]
} else {
title-content = title
}
pad[
#justified-header(title, location)
#justified-header(title-content, text(fill: location-color)[#location])
#secondary-justified-header(description, date)
]
}

View File

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