Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8c30e2219 | ||
|
|
5b74cf40ee |
4
.github/workflows/build-documentation.yml
vendored
@@ -7,9 +7,7 @@ jobs:
|
|||||||
- name: Set up Git repository
|
- name: Set up Git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install fonts
|
- name: Install fonts
|
||||||
run: |
|
run: sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
|
||||||
sudo apt update
|
|
||||||
sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
|
|
||||||
- name: Typst
|
- name: Typst
|
||||||
uses: yusancky/setup-typst@v2
|
uses: yusancky/setup-typst@v2
|
||||||
id: setup-typst
|
id: setup-typst
|
||||||
|
|||||||
@@ -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.5.0": *
|
#import "@preview/modern-cv:0.1.0": *
|
||||||
|
|
||||||
#show: resume.with(
|
#show: resume.with(
|
||||||
author: (
|
author: (
|
||||||
|
|||||||
165
assets/icons/LICENSE.txt
Normal file
@@ -0,0 +1,165 @@
|
|||||||
|
Fonticons, Inc. (https://fontawesome.com)
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Font Awesome Free License
|
||||||
|
|
||||||
|
Font Awesome Free is free, open source, and GPL friendly. You can use it for
|
||||||
|
commercial projects, open source projects, or really almost whatever you want.
|
||||||
|
Full Font Awesome Free license: https://fontawesome.com/license/free.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
|
||||||
|
|
||||||
|
The Font Awesome Free download is licensed under a Creative Commons
|
||||||
|
Attribution 4.0 International License and applies to all icons packaged
|
||||||
|
as SVG and JS file types.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Fonts: SIL OFL 1.1 License
|
||||||
|
|
||||||
|
In the Font Awesome Free download, the SIL OFL license applies to all icons
|
||||||
|
packaged as web and desktop font files.
|
||||||
|
|
||||||
|
Copyright (c) 2023 Fonticons, Inc. (https://fontawesome.com)
|
||||||
|
with Reserved Font Name: "Font Awesome".
|
||||||
|
|
||||||
|
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||||
|
This license is copied below, and is also available with a FAQ at:
|
||||||
|
http://scripts.sil.org/OFL
|
||||||
|
|
||||||
|
SIL OPEN FONT LICENSE
|
||||||
|
Version 1.1 - 26 February 2007
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||||
|
development of collaborative font projects, to support the font creation
|
||||||
|
efforts of academic and linguistic communities, and to provide a free and
|
||||||
|
open framework in which fonts may be shared and improved in partnership
|
||||||
|
with others.
|
||||||
|
|
||||||
|
The OFL allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely as long as they are not sold by themselves. The
|
||||||
|
fonts, including any derivative works, can be bundled, embedded,
|
||||||
|
redistributed and/or sold with any software provided that any reserved
|
||||||
|
names are not used by derivative works. The fonts and derivatives,
|
||||||
|
however, cannot be released under any other type of license. The
|
||||||
|
requirement for fonts to remain under this license does not apply
|
||||||
|
to any document created using the fonts or their derivatives.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this license and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Reserved Font Name" refers to any names specified as such after the
|
||||||
|
copyright statement(s).
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components as
|
||||||
|
distributed by the Copyright Holder(s).
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting — in part or in whole — any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to a
|
||||||
|
new environment.
|
||||||
|
|
||||||
|
"Author" refers to any designer, engineer, programmer, technical
|
||||||
|
writer or other person who contributed to the Font Software.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||||
|
redistribute, and sell modified and unmodified copies of the Font
|
||||||
|
Software, subject to the following conditions:
|
||||||
|
|
||||||
|
1) Neither the Font Software nor any of its individual components,
|
||||||
|
in Original or Modified Versions, may be sold by itself.
|
||||||
|
|
||||||
|
2) Original or Modified Versions of the Font Software may be bundled,
|
||||||
|
redistributed and/or sold with any software, provided that each copy
|
||||||
|
contains the above copyright notice and this license. These can be
|
||||||
|
included either as stand-alone text files, human-readable headers or
|
||||||
|
in the appropriate machine-readable metadata fields within text or
|
||||||
|
binary files as long as those fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
3) No Modified Version of the Font Software may use the Reserved Font
|
||||||
|
Name(s) unless explicit written permission is granted by the corresponding
|
||||||
|
Copyright Holder. This restriction only applies to the primary font name as
|
||||||
|
presented to the users.
|
||||||
|
|
||||||
|
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||||
|
Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except to acknowledge the contribution(s) of the
|
||||||
|
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||||
|
permission.
|
||||||
|
|
||||||
|
5) The Font Software, modified or unmodified, in part or in whole,
|
||||||
|
must be distributed entirely under this license, and must not be
|
||||||
|
distributed under any other license. The requirement for fonts to
|
||||||
|
remain under this license does not apply to any document created
|
||||||
|
using the Font Software.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This license becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||||
|
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||||
|
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Code: MIT License (https://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
|
In the Font Awesome Free download, the MIT license applies to all non-font and
|
||||||
|
non-icon files.
|
||||||
|
|
||||||
|
Copyright 2023 Fonticons, Inc.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in the
|
||||||
|
Software without restriction, including without limitation the rights to use, copy,
|
||||||
|
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
||||||
|
and to permit persons to whom the Software is furnished to do so, subject to the
|
||||||
|
following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Attribution
|
||||||
|
|
||||||
|
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
|
||||||
|
Awesome Free files already contain embedded comments with sufficient
|
||||||
|
attribution, so you shouldn't need to do anything additional when using these
|
||||||
|
files normally.
|
||||||
|
|
||||||
|
We've kept attribution comments terse, so we ask that you do not actively work
|
||||||
|
to remove them from files, especially code. They're a great way for folks to
|
||||||
|
learn about Font Awesome.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
# Brand Icons
|
||||||
|
|
||||||
|
All brand icons are trademarks of their respective owners. The use of these
|
||||||
|
trademarks does not indicate endorsement of the trademark holder by Font
|
||||||
|
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
|
||||||
|
to represent the company, product, or service to which they refer.**
|
||||||
1
assets/icons/square-phone-solid.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm90.7 96.7c9.7-2.6 19.9 2.3 23.7 11.6l20 48c3.4 8.2 1 17.6-5.8 23.2L168 231.7c16.6 35.2 45.1 63.7 80.3 80.3l20.2-24.7c5.6-6.8 15-9.2 23.2-5.8l48 20c9.3 3.9 14.2 14 11.6 23.7l-12 44C336.9 378 329 384 320 384C196.3 384 96 283.7 96 160c0-9 6-16.9 14.7-19.3l44-12z"/></svg>
|
||||||
|
After Width: | Height: | Size: 612 B |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 209 KiB After Width: | Height: | Size: 210 KiB |
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
36
lang.toml
@@ -7,7 +7,6 @@ dear = "Dear"
|
|||||||
cover-letter = "Cover Letter"
|
cover-letter = "Cover Letter"
|
||||||
attached = "Attached"
|
attached = "Attached"
|
||||||
curriculum-vitae = "Curriculum Vitae"
|
curriculum-vitae = "Curriculum Vitae"
|
||||||
sincerely = "Sincerely"
|
|
||||||
|
|
||||||
[lang.de]
|
[lang.de]
|
||||||
resume = "Lebenslauf"
|
resume = "Lebenslauf"
|
||||||
@@ -15,7 +14,6 @@ dear = "Sehr geehrte"
|
|||||||
cover-letter = "Anschreiben"
|
cover-letter = "Anschreiben"
|
||||||
attached = "Angehängt"
|
attached = "Angehängt"
|
||||||
curriculum-vitae = "Lebenslauf"
|
curriculum-vitae = "Lebenslauf"
|
||||||
sincerely = "Aufrichtig"
|
|
||||||
|
|
||||||
[lang.gr]
|
[lang.gr]
|
||||||
resume = "Βιογραφικό"
|
resume = "Βιογραφικό"
|
||||||
@@ -23,15 +21,6 @@ dear = "Αγαπητέ"
|
|||||||
cover-letter = "Συνοδευτική Επιστολή"
|
cover-letter = "Συνοδευτική Επιστολή"
|
||||||
attached = "Συνημμένο"
|
attached = "Συνημμένο"
|
||||||
curriculum-vitae = "Βιογραφικό"
|
curriculum-vitae = "Βιογραφικό"
|
||||||
sincerely = "Με εκτίμηση"
|
|
||||||
|
|
||||||
[lang.pt]
|
|
||||||
resume = "Currículo"
|
|
||||||
dear = "Caro(a)"
|
|
||||||
cover-letter = "Carta de Apresentação"
|
|
||||||
attached = "Em anexo"
|
|
||||||
curriculum-vitae = "Currículo"
|
|
||||||
sincerely = "Atenciosamente"
|
|
||||||
|
|
||||||
[lang.sp]
|
[lang.sp]
|
||||||
resume = "Currículum"
|
resume = "Currículum"
|
||||||
@@ -39,28 +28,3 @@ dear = "Estimado"
|
|||||||
cover-letter = "Carta de Presentación"
|
cover-letter = "Carta de Presentación"
|
||||||
attached = "Adjunto"
|
attached = "Adjunto"
|
||||||
curriculum-vitae = "Currículum"
|
curriculum-vitae = "Currículum"
|
||||||
sincerely = "Sinceramente"
|
|
||||||
|
|
||||||
[lang.fr]
|
|
||||||
resume = "Curriculum Vitae"
|
|
||||||
dear = "Cher/Chère"
|
|
||||||
cover-letter = "Lettre de motivation"
|
|
||||||
attached = "Ci-joint"
|
|
||||||
curriculum-vitae = "Curriculum Vitae"
|
|
||||||
sincerely = "Sincèrement"
|
|
||||||
|
|
||||||
[lang.ru]
|
|
||||||
resume = "Резюме"
|
|
||||||
dear = "Уважаемый"
|
|
||||||
cover-letter = "Сопроводительное письмо"
|
|
||||||
attached = "Прилагается"
|
|
||||||
curriculum-vitae = "Биографическая справка"
|
|
||||||
sincerely = "Искренне"
|
|
||||||
|
|
||||||
[lang.zh]
|
|
||||||
resume = "简历"
|
|
||||||
dear = "亲爱的"
|
|
||||||
cover-letter = "求职信"
|
|
||||||
attached = "附件"
|
|
||||||
curriculum-vitae = "简历"
|
|
||||||
sincerely = "真诚的"
|
|
||||||
|
|||||||
213
lib.typ
@@ -1,4 +1,4 @@
|
|||||||
#import "@preview/fontawesome:0.2.1": *
|
#import "@preview/fontawesome:0.1.0": *
|
||||||
#import "@preview/linguify:0.4.0": *
|
#import "@preview/linguify:0.4.0": *
|
||||||
|
|
||||||
// const color
|
// const color
|
||||||
@@ -6,28 +6,17 @@
|
|||||||
#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(
|
||||||
fa-icon("linkedin", fill: color-darknight),
|
fa-icon("linkedin", fa-set: "Brands", fill: color-darknight),
|
||||||
)
|
)
|
||||||
#let github-icon = box(
|
#let github-icon = box(
|
||||||
fa-icon("github", fill: color-darknight),
|
fa-icon("github", fa-set: "Brands", fill: color-darknight),
|
||||||
)
|
)
|
||||||
#let twitter-icon = box(
|
// for some reason this icon doesn't work with fa-icon, so we use the local version
|
||||||
fa-icon("twitter", fill: color-darknight),
|
#let phone-icon = box(image("assets/icons/square-phone-solid.svg"))
|
||||||
)
|
|
||||||
#let google-scholar-icon = box(
|
|
||||||
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 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 homepage-icon = box(fa-icon("home", fill: color-darknight))
|
|
||||||
|
|
||||||
/// Helpers
|
/// Helpers
|
||||||
|
|
||||||
@@ -63,50 +52,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")`)
|
||||||
@@ -116,7 +61,7 @@
|
|||||||
set box(height: 11pt)
|
set box(height: 11pt)
|
||||||
|
|
||||||
align(right + horizon)[
|
align(right + horizon)[
|
||||||
#fa-icon("github", fill: color-darkgray) #link(
|
#fa-icon("github", fa-set: "Brands", fill: color-darkgray) #link(
|
||||||
"https://github.com/" + github-path,
|
"https://github.com/" + github-path,
|
||||||
github-path,
|
github-path,
|
||||||
)
|
)
|
||||||
@@ -190,9 +135,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 +150,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
set text(
|
set text(
|
||||||
font: font,
|
font: ("Source Sans Pro"),
|
||||||
lang: language,
|
lang: language,
|
||||||
size: 11pt,
|
size: 11pt,
|
||||||
fill: color-darkgray,
|
fill: color-darkgray,
|
||||||
@@ -217,7 +160,24 @@
|
|||||||
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[
|
||||||
|
#author.firstname
|
||||||
|
#author.lastname
|
||||||
|
#sym.dot.c
|
||||||
|
#linguify("resume", from: lang_data)
|
||||||
|
]
|
||||||
|
][
|
||||||
|
#counter(page).display()
|
||||||
|
]
|
||||||
|
],
|
||||||
footer-descent: 0pt,
|
footer-descent: 0pt,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -234,7 +194,6 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
show heading.where(level: 1): it => [
|
show heading.where(level: 1): it => [
|
||||||
|
|
||||||
#set block(
|
#set block(
|
||||||
above: 1em,
|
above: 1em,
|
||||||
below: 1em,
|
below: 1em,
|
||||||
@@ -253,7 +212,6 @@
|
|||||||
#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 => {
|
||||||
@@ -283,18 +241,11 @@
|
|||||||
style: "normal",
|
style: "normal",
|
||||||
font: ("Roboto"),
|
font: ("Roboto"),
|
||||||
)
|
)
|
||||||
#if language == "zh" or language == "ja" [
|
#text(fill: accent-color, weight: "thin")[#author.firstname]
|
||||||
#text(
|
|
||||||
accent-color,
|
|
||||||
weight: "thin",
|
|
||||||
)[#author.firstname]#text(weight: "bold")[#author.lastname]
|
|
||||||
] else [
|
|
||||||
#text(accent-color, weight: "thin")[#author.firstname]
|
|
||||||
#text(weight: "bold")[#author.lastname]
|
#text(weight: "bold")[#author.lastname]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let positions = {
|
let positions = {
|
||||||
@@ -315,13 +266,11 @@
|
|||||||
let address = {
|
let address = {
|
||||||
set text(
|
set text(
|
||||||
size: 9pt,
|
size: 9pt,
|
||||||
weight: "regular",
|
weight: "bold",
|
||||||
)
|
)
|
||||||
align(center)[
|
align(center)[
|
||||||
#if ("address" in author) [
|
|
||||||
#author.address
|
#author.address
|
||||||
]
|
]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let contacts = {
|
let contacts = {
|
||||||
@@ -337,53 +286,27 @@
|
|||||||
)
|
)
|
||||||
#block[
|
#block[
|
||||||
#align(horizon)[
|
#align(horizon)[
|
||||||
#if ("birth" in author) [
|
#if author.phone != none [
|
||||||
#birth-icon
|
|
||||||
#box[#text(author.birth)]
|
|
||||||
#separator
|
|
||||||
]
|
|
||||||
#if ("phone" in author) [
|
|
||||||
#phone-icon
|
#phone-icon
|
||||||
#box[#text(author.phone)]
|
#box[#text(author.phone)]
|
||||||
#separator
|
#separator
|
||||||
]
|
]
|
||||||
#if ("email" in author) [
|
#if author.email != none [
|
||||||
#email-icon
|
#email-icon
|
||||||
#box[#link("mailto:" + author.email)[#author.email]]
|
#box[#link("mailto:" + author.email)[#author.email]]
|
||||||
]
|
]
|
||||||
#if ("homepage" in author) [
|
#if author.github != none [
|
||||||
#separator
|
|
||||||
#homepage-icon
|
|
||||||
#box[#link(author.homepage)[#author.homepage]]
|
|
||||||
]
|
|
||||||
#if ("github" in author) [
|
|
||||||
#separator
|
#separator
|
||||||
#github-icon
|
#github-icon
|
||||||
#box[#link("https://github.com/" + author.github)[#author.github]]
|
#box[#link("https://github.com/" + author.github)[#author.github]]
|
||||||
]
|
]
|
||||||
#if ("linkedin" in author) [
|
#if author.linkedin != none [
|
||||||
#separator
|
#separator
|
||||||
#linkedin-icon
|
#linkedin-icon
|
||||||
#box[
|
#box[
|
||||||
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.linkedin]
|
#link("https://www.linkedin.com/in/" + author.linkedin)[#author.firstname #author.lastname]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
#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]]
|
|
||||||
]
|
|
||||||
#if ("orcid" in author) [
|
|
||||||
#separator
|
|
||||||
#orcid-icon
|
|
||||||
#box[#link("https://orcid.org/" + author.orcid)[#author.orcid]]
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -415,31 +338,17 @@
|
|||||||
/// - 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-content, location)
|
#justified-header(title, location)
|
||||||
#if description != "" or date != "" [
|
|
||||||
#secondary-justified-header(description, date)
|
#secondary-justified-header(description, date)
|
||||||
]
|
]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Show cumulative GPA.
|
/// Show cumulative GPA.
|
||||||
@@ -507,8 +416,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 +431,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
set text(
|
set text(
|
||||||
font: font,
|
font: ("Source Sans Pro"),
|
||||||
lang: language,
|
lang: language,
|
||||||
size: 11pt,
|
size: 11pt,
|
||||||
fill: color-darkgray,
|
fill: color-darkgray,
|
||||||
@@ -534,7 +441,24 @@
|
|||||||
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[
|
||||||
|
#author.firstname
|
||||||
|
#author.lastname
|
||||||
|
#sym.dot.c
|
||||||
|
#linguify("cover-letter", from: lang_data)
|
||||||
|
]
|
||||||
|
][
|
||||||
|
#counter(page).display()
|
||||||
|
]
|
||||||
|
],
|
||||||
footer-descent: 0pt,
|
footer-descent: 0pt,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -575,17 +499,9 @@
|
|||||||
style: "normal",
|
style: "normal",
|
||||||
font: ("Roboto"),
|
font: ("Roboto"),
|
||||||
)
|
)
|
||||||
#if language == "zh" or language == "ja" [
|
|
||||||
#text(
|
|
||||||
accent-color,
|
|
||||||
weight: "thin",
|
|
||||||
)[#author.firstname]#text(weight: "bold")[#author.lastname]
|
|
||||||
] else [
|
|
||||||
#text(accent-color, weight: "thin")[#author.firstname]
|
#text(accent-color, weight: "thin")[#author.firstname]
|
||||||
#text(weight: "bold")[#author.lastname]
|
#text(weight: "bold")[#author.lastname]
|
||||||
]
|
]
|
||||||
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -612,10 +528,8 @@
|
|||||||
fill: color-gray,
|
fill: color-gray,
|
||||||
)
|
)
|
||||||
align(right)[
|
align(right)[
|
||||||
#if ("address" in author) [
|
|
||||||
#author.address
|
#author.address
|
||||||
]
|
]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let contacts = {
|
let contacts = {
|
||||||
@@ -634,21 +548,21 @@
|
|||||||
#stack(
|
#stack(
|
||||||
dir: ltr,
|
dir: ltr,
|
||||||
spacing: 0.5em,
|
spacing: 0.5em,
|
||||||
if ("phone" in author) [
|
if author.phone != none [
|
||||||
#phone-icon
|
#phone-icon
|
||||||
#box[#text(author.phone)]
|
#box[#text(author.phone)]
|
||||||
#separator
|
#separator
|
||||||
],
|
],
|
||||||
if ("email" in author) [
|
if author.email != none [
|
||||||
#email-icon
|
#email-icon
|
||||||
#box[#link("mailto:" + author.email)[#author.email]]
|
#box[#link("mailto:" + author.email)[#author.email]]
|
||||||
],
|
],
|
||||||
if ("github" in author) [
|
if author.github != none [
|
||||||
#separator
|
#separator
|
||||||
#github-icon
|
#github-icon
|
||||||
#box[#link("https://github.com/" + author.github)[#author.github]]
|
#box[#link("https://github.com/" + author.github)[#author.github]]
|
||||||
],
|
],
|
||||||
if ("linkedin" in author) [
|
if author.linkedin != none [
|
||||||
#separator
|
#separator
|
||||||
#linkedin-icon
|
#linkedin-icon
|
||||||
#box[
|
#box[
|
||||||
@@ -687,10 +601,7 @@
|
|||||||
let letter-conclusion = {
|
let letter-conclusion = {
|
||||||
align(bottom)[
|
align(bottom)[
|
||||||
#pad(bottom: 2em)[
|
#pad(bottom: 2em)[
|
||||||
#text(weight: "light")[#linguify(
|
#text(weight: "light")[Sincerely,] \
|
||||||
"sincerely",
|
|
||||||
from: lang_data,
|
|
||||||
)#sym.comma] \
|
|
||||||
#text(weight: "bold")[#author.firstname #author.lastname] \ \
|
#text(weight: "bold")[#author.firstname #author.lastname] \ \
|
||||||
#text(weight: "light", style: "italic")[ #linguify(
|
#text(weight: "light", style: "italic")[ #linguify(
|
||||||
"attached",
|
"attached",
|
||||||
@@ -735,8 +646,7 @@
|
|||||||
/// Letter heading for a given job position and addressee.
|
/// 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
|
/// - addressee (string): The person you are addressing the letter to
|
||||||
/// - dear (string): optional field for redefining the "dear" variable
|
#let letter-heading(job-position: "", addressee: "") = {
|
||||||
#let letter-heading(job-position: "", addressee: "", dear: "") = {
|
|
||||||
let lang_data = toml("lang.toml")
|
let lang_data = toml("lang.toml")
|
||||||
|
|
||||||
// TODO: Make this adaptable to content
|
// TODO: Make this adaptable to content
|
||||||
@@ -745,12 +655,7 @@
|
|||||||
]
|
]
|
||||||
pad(top: 1em, bottom: 1em)[
|
pad(top: 1em, bottom: 1em)[
|
||||||
#text(weight: "light", fill: color-gray)[
|
#text(weight: "light", fill: color-gray)[
|
||||||
#if dear == "" [
|
#linguify("dear", from: lang_data) #addressee,
|
||||||
#linguify("dear", from: lang_data)
|
|
||||||
] else [
|
|
||||||
#dear
|
|
||||||
]
|
|
||||||
#addressee,
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#import "lib.typ"
|
#import "lib.typ"
|
||||||
#import "@preview/tidy:0.3.0"
|
#import "@preview/tidy:0.2.0"
|
||||||
|
|
||||||
#let docs = tidy.parse-module(
|
#let docs = tidy.parse-module(
|
||||||
read("lib.typ"),
|
read("lib.typ"),
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
#import "@preview/modern-cv:0.6.0": *
|
#import "@preview/modern-cv:0.3.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: (
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
#import "@preview/modern-cv:0.6.0": *
|
#import "@preview/modern-cv:0.3.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",
|
||||||
@@ -16,7 +15,7 @@
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
profile-picture: none,
|
profile-picture: none,
|
||||||
language: "sp",
|
language: "en",
|
||||||
)
|
)
|
||||||
|
|
||||||
#hiring-entity-info(entity-info: (
|
#hiring-entity-info(entity-info: (
|
||||||
|
|||||||
@@ -1,17 +1,12 @@
|
|||||||
#import "@preview/modern-cv:0.6.0": *
|
#import "@preview/modern-cv:0.3.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",
|
|
||||||
scholar: "",
|
|
||||||
orcid: "0000-0000-0000-000X",
|
|
||||||
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: (
|
||||||
@@ -23,7 +18,6 @@
|
|||||||
date: datetime.today().display(),
|
date: datetime.today().display(),
|
||||||
language: "en",
|
language: "en",
|
||||||
colored-headers: true,
|
colored-headers: true,
|
||||||
show-footer: false,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
= Experience
|
= Experience
|
||||||
@@ -33,7 +27,6 @@
|
|||||||
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[
|
||||||
@@ -55,17 +48,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(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "modern-cv"
|
name = "modern-cv"
|
||||||
version = "0.6.0"
|
version = "0.3.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>"]
|
||||||
|
|||||||