Compare commits
67 Commits
release/0.
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5a192acf1 | ||
|
|
a2fe9ca40a | ||
|
|
78a53befb5 | ||
|
|
3845415587 | ||
|
|
650b2b0cec | ||
|
|
4dcb8ab7fd | ||
|
|
40427ffede | ||
|
|
2567ecb808 | ||
|
|
ab79ab2790 | ||
|
|
9652a1cb90 | ||
|
|
a721c30354 | ||
|
|
207a2f37b9 | ||
|
|
aafb3b31f9 | ||
|
|
da7aec4451 | ||
|
|
9837139dad | ||
|
|
7571cffd8b | ||
|
|
9cc5a62a50 | ||
|
|
fc3347ae75 | ||
|
|
f03c687808 | ||
|
|
1c6e9e429f | ||
|
|
a6a6108cae | ||
|
|
85e9faf8dc | ||
|
|
cf10c53032 | ||
|
|
744a7657e0 | ||
|
|
d97b816d20 | ||
|
|
4cefe9c2cd | ||
|
|
53f3b721b2 | ||
|
|
70e7f9cafd | ||
|
|
0f4e404994 | ||
|
|
3afe98f056 | ||
|
|
a2ac2cfb18 | ||
|
|
6f3a515d16 | ||
|
|
aa021a31d7 | ||
|
|
0b5c18ec88 | ||
|
|
d9002d8a26 | ||
|
|
7baa016c88 | ||
|
|
c73984ab81 | ||
|
|
05ffbcef15 | ||
|
|
1dae612f74 | ||
|
|
e948a09984 | ||
|
|
04bc4ffbd7 | ||
|
|
46a83e51c0 | ||
|
|
377c0d9ff6 | ||
|
|
8b27dbdaf2 | ||
|
|
21cdfb557b | ||
|
|
2f5ad86c6f | ||
|
|
07449e0394 | ||
|
|
9526f6a566 | ||
|
|
a7ce85d877 | ||
|
|
577ad93af7 | ||
|
|
fad778ee86 | ||
|
|
f7a4ffdd17 | ||
|
|
62286ddd14 | ||
|
|
efd27110bd | ||
|
|
033a0f7fbb | ||
|
|
bf1e3bd1f6 | ||
|
|
201f6f7657 | ||
|
|
e477fc04df | ||
|
|
12ea6807a3 | ||
|
|
6bd4116307 | ||
|
|
d2482e1198 | ||
|
|
9654d6ef7c | ||
|
|
b23f46b9ba | ||
|
|
bd9bfc1733 | ||
|
|
87e0609aa9 | ||
|
|
bf166be9fb | ||
|
|
0b7481e9be |
16
.fork/custom-commands.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"version" : 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"action" : {
|
||||||
|
"script" : "${repo:path}/scripts/format_typst.ps1",
|
||||||
|
"showOutput" : true,
|
||||||
|
"type" : "sh",
|
||||||
|
"waitForExit" : true
|
||||||
|
},
|
||||||
|
"name" : "Format",
|
||||||
|
"os" : "windows",
|
||||||
|
"target" : "revision"
|
||||||
|
}
|
||||||
|
]
|
||||||
4
.github/workflows/build-documentation.yml
vendored
@@ -7,7 +7,9 @@ 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: sudo apt-get install fonts-font-awesome fonts-roboto texlive-fonts-recommended texlive-fonts-extra
|
run: |
|
||||||
|
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
|
||||||
|
|||||||
7
.issuetracker
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# Integration with Issue Tracker
|
||||||
|
#
|
||||||
|
# (note that '\' need to be escaped).
|
||||||
|
|
||||||
|
[issuetracker "Github"]
|
||||||
|
regex = "#(\\d+)"
|
||||||
|
url = "https://github.com/DeveloperPaul123/modern-cv/issues/$1"
|
||||||
29
README.md
@@ -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: (
|
||||||
@@ -77,4 +77,29 @@ Documentation for this template is published with each commit. See the attached
|
|||||||
| Resumes | Cover letters |
|
| Resumes | Cover letters |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|  |  |
|
|  |  |
|
||||||
| | |
|
|  | |
|
||||||
|
|
||||||
|
## 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) |
|
||||||
|
|:----:|
|
||||||
|
|||||||
@@ -1,165 +0,0 @@
|
|||||||
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 +0,0 @@
|
|||||||
<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>
|
|
||||||
|
Before Width: | Height: | Size: 612 B |
|
Before Width: | Height: | Size: 205 KiB After Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 209 KiB |
|
Before Width: | Height: | Size: 210 KiB After Width: | Height: | Size: 210 KiB |
BIN
assets/images/resume2.png
Normal file
|
After Width: | Height: | Size: 209 KiB |
58
lang.toml
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
[conf]
|
||||||
|
default-lang = "en"
|
||||||
|
|
||||||
|
[lang.en]
|
||||||
|
resume = "Résumé"
|
||||||
|
dear = "Dear"
|
||||||
|
cover-letter = "Cover Letter"
|
||||||
|
attached = "Attached"
|
||||||
|
curriculum-vitae = "Curriculum Vitae"
|
||||||
|
sincerely = "Sincerely"
|
||||||
|
|
||||||
|
[lang.de]
|
||||||
|
resume = "Lebenslauf"
|
||||||
|
dear = "Sehr geehrte"
|
||||||
|
cover-letter = "Anschreiben"
|
||||||
|
attached = "Angehängt"
|
||||||
|
curriculum-vitae = "Lebenslauf"
|
||||||
|
sincerely = "Aufrichtig"
|
||||||
|
|
||||||
|
[lang.gr]
|
||||||
|
resume = "Βιογραφικό"
|
||||||
|
dear = "Αγαπητέ"
|
||||||
|
cover-letter = "Συνοδευτική Επιστολή"
|
||||||
|
attached = "Συνημμένο"
|
||||||
|
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]
|
||||||
|
resume = "Currículum"
|
||||||
|
dear = "Estimado"
|
||||||
|
cover-letter = "Carta de Presentación"
|
||||||
|
attached = "Adjunto"
|
||||||
|
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 = "Искренне"
|
||||||
393
lib.typ
@@ -1,17 +1,29 @@
|
|||||||
#import "@preview/fontawesome:0.1.0": *
|
#import "@preview/fontawesome:0.2.1": *
|
||||||
|
#import "@preview/linguify:0.4.0": *
|
||||||
|
|
||||||
// const color
|
// const color
|
||||||
#let color-darknight = rgb("#131A28")
|
#let color-darknight = rgb("#131A28")
|
||||||
#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(fa-icon("linkedin", fa-set: "Brands", fill: color-darknight))
|
#let linkedin-icon = box(
|
||||||
#let github-icon = box(fa-icon("github", fa-set: "Brands", fill: color-darknight))
|
fa-icon("linkedin", 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 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 email-icon = box(fa-icon("envelope", fill: color-darknight))
|
||||||
|
#let birth-icon = box(fa-icon("cake", fill: color-darknight))
|
||||||
|
|
||||||
/// Helpers
|
/// Helpers
|
||||||
|
|
||||||
@@ -50,28 +62,36 @@
|
|||||||
/// 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")`)
|
||||||
/// - 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
|
/// -> none
|
||||||
#let github-link(github_path) = {
|
#let github-link(github-path) = {
|
||||||
set box(height: 11pt)
|
set box(height: 11pt)
|
||||||
|
|
||||||
align(right + horizon)[
|
align(right + horizon)[
|
||||||
#fa-icon("github", fa-set: "Brands", fill: color-darkgray) #link("https://github.com/" + github_path, github_path)
|
#fa-icon("github", fill: color-darkgray) #link(
|
||||||
|
"https://github.com/" + github-path,
|
||||||
|
github-path,
|
||||||
|
)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Right section for the justified headers
|
/// Right section for the justified headers
|
||||||
/// - body (content): The body of the right header
|
/// - body (content): The body of the right header
|
||||||
/// - accent_color (color): The accent color to color the text with. This defaults to the default-accent-color
|
#let secondary-right-header(body) = {
|
||||||
#let secondary-right-header(body, accent_color: default-accent-color) = {
|
set text(
|
||||||
set text(size: 11pt, weight: "medium")
|
size: 11pt,
|
||||||
|
weight: "medium",
|
||||||
|
)
|
||||||
body
|
body
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Right section of a tertiaty headers.
|
/// Right section of a tertiaty headers.
|
||||||
/// - body (content): The body of the right header
|
/// - body (content): The body of the right header
|
||||||
#let tertiary-right-header(body) = {
|
#let tertiary-right-header(body) = {
|
||||||
set text(weight: "light", size: 9pt)
|
set text(
|
||||||
|
weight: "light",
|
||||||
|
size: 9pt,
|
||||||
|
)
|
||||||
body
|
body
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -79,7 +99,10 @@
|
|||||||
/// - primary (content): The primary section of the header
|
/// - primary (content): The primary section of the header
|
||||||
/// - secondary (content): The secondary section of the header
|
/// - secondary (content): The secondary section of the header
|
||||||
#let justified-header(primary, secondary) = {
|
#let justified-header(primary, secondary) = {
|
||||||
set block(above: 0.7em, below: 0.7em)
|
set block(
|
||||||
|
above: 0.7em,
|
||||||
|
below: 0.7em,
|
||||||
|
)
|
||||||
pad[
|
pad[
|
||||||
#__justify_align[
|
#__justify_align[
|
||||||
== #primary
|
== #primary
|
||||||
@@ -109,42 +132,57 @@
|
|||||||
///
|
///
|
||||||
/// - author (content): Structure that takes in all the author's information
|
/// - author (content): Structure that takes in all the author's information
|
||||||
/// - date (string): The date the resume was created
|
/// - date (string): The date the resume was created
|
||||||
/// - accent_color (color): The accent color of the resume
|
/// - accent-color (color): The accent color of the resume
|
||||||
/// - colored_headers (boolean): Whether the headers should be colored or not
|
/// - 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
|
||||||
/// - body (content): The body of the resume
|
/// - body (content): The body of the resume
|
||||||
/// -> none
|
/// -> none
|
||||||
#let resume(
|
#let resume(
|
||||||
author: (:),
|
author: (:),
|
||||||
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,
|
||||||
body) = {
|
language: "en",
|
||||||
|
body,
|
||||||
|
) = {
|
||||||
|
if type(accent-color) == "string" {
|
||||||
|
accent-color = rgb(accent-color)
|
||||||
|
}
|
||||||
|
|
||||||
|
let lang_data = toml("lang.toml")
|
||||||
|
|
||||||
set document(
|
set document(
|
||||||
author: author.firstname + " " + author.lastname,
|
author: author.firstname + " " + author.lastname,
|
||||||
title: "resume",
|
title: "resume",
|
||||||
)
|
)
|
||||||
|
|
||||||
set text(
|
set text(
|
||||||
font: ("Source Sans Pro"),
|
font: ("Source Sans Pro", "Source Sans 3"),
|
||||||
lang: "en",
|
lang: language,
|
||||||
size: 11pt,
|
size: 11pt,
|
||||||
fill: color-darkgray,
|
fill: color-darkgray,
|
||||||
fallback: true
|
fallback: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
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: [
|
footer: [
|
||||||
#set text(fill: gray, size: 8pt)
|
#set text(
|
||||||
|
fill: gray,
|
||||||
|
size: 8pt,
|
||||||
|
)
|
||||||
#__justify_align_3[
|
#__justify_align_3[
|
||||||
#smallcaps[#date]
|
#smallcaps[#date]
|
||||||
][
|
][
|
||||||
#smallcaps[
|
#smallcaps[
|
||||||
#author.firstname
|
#if language == "zh" or language == "ja" [
|
||||||
#author.lastname
|
#author.firstname#author.lastname
|
||||||
|
] else [
|
||||||
|
#author.firstname#sym.space#author.lastname
|
||||||
|
]
|
||||||
#sym.dot.c
|
#sym.dot.c
|
||||||
#"Résumé"
|
#linguify("resume", from: lang_data)
|
||||||
]
|
]
|
||||||
][
|
][
|
||||||
#counter(page).display()
|
#counter(page).display()
|
||||||
@@ -154,7 +192,10 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
// set paragraph spacing
|
// 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 par(justify: true)
|
||||||
|
|
||||||
set heading(
|
set heading(
|
||||||
@@ -163,26 +204,43 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
show heading.where(level: 1): it => [
|
show heading.where(level: 1): it => [
|
||||||
#set block(above: 1em, below: 1em)
|
|
||||||
|
#set block(
|
||||||
|
above: 1em,
|
||||||
|
below: 1em,
|
||||||
|
)
|
||||||
#set text(
|
#set text(
|
||||||
size: 16pt,
|
size: 16pt,
|
||||||
weight: "regular"
|
weight: "regular",
|
||||||
)
|
)
|
||||||
|
|
||||||
#align(left)[
|
#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]]]
|
#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 => {
|
||||||
set text(color-darkgray, size: 12pt, style: "normal", weight: "bold")
|
set text(
|
||||||
|
color-darkgray,
|
||||||
|
size: 12pt,
|
||||||
|
style: "normal",
|
||||||
|
weight: "bold",
|
||||||
|
)
|
||||||
it.body
|
it.body
|
||||||
}
|
}
|
||||||
|
|
||||||
show heading.where(level: 3): it => {
|
show heading.where(level: 3): it => {
|
||||||
set text(size: 10pt, weight: "regular")
|
set text(
|
||||||
|
size: 10pt,
|
||||||
|
weight: "regular",
|
||||||
|
)
|
||||||
smallcaps[#it.body]
|
smallcaps[#it.body]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,24 +248,35 @@
|
|||||||
align(center)[
|
align(center)[
|
||||||
#pad(bottom: 5pt)[
|
#pad(bottom: 5pt)[
|
||||||
#block[
|
#block[
|
||||||
#set text(size: 32pt, style: "normal", font: ("Roboto"))
|
#set text(
|
||||||
#text(accent_color, weight: "thin")[#author.firstname]
|
size: 32pt,
|
||||||
|
style: "normal",
|
||||||
|
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(weight: "bold")[#author.lastname]
|
#text(weight: "bold")[#author.lastname]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
let positions = {
|
let positions = {
|
||||||
set text(
|
set text(
|
||||||
accent_color,
|
accent-color,
|
||||||
size: 9pt,
|
size: 9pt,
|
||||||
weight: "regular"
|
weight: "regular",
|
||||||
)
|
)
|
||||||
align(center)[
|
align(center)[
|
||||||
#smallcaps[
|
#smallcaps[
|
||||||
#author.positions.join(
|
#author.positions.join(
|
||||||
text[#" "#sym.dot.c#" "]
|
text[#" "#sym.dot.c#" "],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -216,11 +285,13 @@
|
|||||||
let address = {
|
let address = {
|
||||||
set text(
|
set text(
|
||||||
size: 9pt,
|
size: 9pt,
|
||||||
weight: "bold"
|
weight: "regular",
|
||||||
)
|
)
|
||||||
align(center)[
|
align(center)[
|
||||||
|
#if ("address" in author) [
|
||||||
#author.address
|
#author.address
|
||||||
]
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
let contacts = {
|
let contacts = {
|
||||||
@@ -229,21 +300,49 @@
|
|||||||
let separator = box(width: 5pt)
|
let separator = box(width: 5pt)
|
||||||
|
|
||||||
align(center)[
|
align(center)[
|
||||||
#set text(size: 9pt, weight: "regular", style: "normal")
|
#set text(
|
||||||
|
size: 9pt,
|
||||||
|
weight: "regular",
|
||||||
|
style: "normal",
|
||||||
|
)
|
||||||
#block[
|
#block[
|
||||||
#align(horizon)[
|
#align(horizon)[
|
||||||
|
#if ("birth" in author) [
|
||||||
|
#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) [
|
||||||
#email-icon
|
#email-icon
|
||||||
#box[#link("mailto:" + author.email)[#author.email]]
|
#box[#link("mailto:" + author.email)[#author.email]]
|
||||||
|
]
|
||||||
|
#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) [
|
||||||
#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]]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -261,7 +360,12 @@
|
|||||||
/// 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.
|
/// 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
|
/// - body (content): The body of the resume entry
|
||||||
#let resume-item(body) = {
|
#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)
|
set par(leading: 0.65em)
|
||||||
body
|
body
|
||||||
}
|
}
|
||||||
@@ -271,14 +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,
|
||||||
|
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)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -287,7 +404,11 @@
|
|||||||
/// *Example:*
|
/// *Example:*
|
||||||
/// #example(`resume.resume-gpa("3.5", "4.0")`)
|
/// #example(`resume.resume-gpa("3.5", "4.0")`)
|
||||||
#let resume-gpa(numerator, denominator) = {
|
#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]]
|
text[Cumulative GPA: #box[#strong[#numerator] / #denominator]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -316,7 +437,11 @@
|
|||||||
== #category
|
== #category
|
||||||
],
|
],
|
||||||
align(left)[
|
align(left)[
|
||||||
#set text(size: 11pt, style: "normal", weight: "light")
|
#set text(
|
||||||
|
size: 11pt,
|
||||||
|
style: "normal",
|
||||||
|
weight: "light",
|
||||||
|
)
|
||||||
#items.join(", ")
|
#items.join(", ")
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@@ -330,43 +455,57 @@
|
|||||||
/// 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.
|
/// 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.
|
/// This coverletter template is designed to be used with the resume template.
|
||||||
/// - author (content): Structure that takes in all the author's information
|
/// - 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
|
/// - 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
|
/// - body (content): The body of the cover letter
|
||||||
#let coverletter(
|
#let coverletter(
|
||||||
author: (:),
|
author: (:),
|
||||||
profile_picture: image,
|
profile-picture: image,
|
||||||
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,
|
||||||
body
|
language: "en",
|
||||||
|
body,
|
||||||
) = {
|
) = {
|
||||||
|
if type(accent-color) == "string" {
|
||||||
|
accent-color = rgb(accent-color)
|
||||||
|
}
|
||||||
|
|
||||||
|
// language data
|
||||||
|
let lang_data = toml("lang.toml")
|
||||||
|
|
||||||
set document(
|
set document(
|
||||||
author: author.firstname + " " + author.lastname,
|
author: author.firstname + " " + author.lastname,
|
||||||
title: "resume",
|
title: "cover-letter",
|
||||||
)
|
)
|
||||||
|
|
||||||
set text(
|
set text(
|
||||||
font: ("Source Sans Pro"),
|
font: ("Source Sans Pro", "Source Sans 3"),
|
||||||
lang: "en",
|
lang: language,
|
||||||
size: 11pt,
|
size: 11pt,
|
||||||
fill: color-darkgray,
|
fill: color-darkgray,
|
||||||
fallback: true
|
fallback: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
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: [
|
footer: [
|
||||||
#set text(fill: gray, size: 8pt)
|
#set text(
|
||||||
|
fill: gray,
|
||||||
|
size: 8pt,
|
||||||
|
)
|
||||||
#__justify_align_3[
|
#__justify_align_3[
|
||||||
#smallcaps[#date]
|
#smallcaps[#date]
|
||||||
][
|
][
|
||||||
#smallcaps[
|
#smallcaps[
|
||||||
#author.firstname
|
#if language == "zh" or language == "ja" [
|
||||||
#author.lastname
|
#author.firstname#author.lastname
|
||||||
|
] else [
|
||||||
|
#author.firstname#sym.space#author.lastname
|
||||||
|
]
|
||||||
#sym.dot.c
|
#sym.dot.c
|
||||||
#"Cover Letter"
|
#linguify("cover-letter", from: lang_data)
|
||||||
]
|
]
|
||||||
][
|
][
|
||||||
#counter(page).display()
|
#counter(page).display()
|
||||||
@@ -376,7 +515,10 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
// set paragraph spacing
|
// 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 par(justify: true)
|
||||||
|
|
||||||
set heading(
|
set heading(
|
||||||
@@ -385,14 +527,17 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
show heading: it => [
|
show heading: it => [
|
||||||
#set block(above: 1em, below: 1em)
|
#set block(
|
||||||
|
above: 1em,
|
||||||
|
below: 1em,
|
||||||
|
)
|
||||||
#set text(
|
#set text(
|
||||||
size: 16pt,
|
size: 16pt,
|
||||||
weight: "regular"
|
weight: "regular",
|
||||||
)
|
)
|
||||||
|
|
||||||
#align(left)[
|
#align(left)[
|
||||||
#text[#strong[#text(accent_color)[#it.body.text]]]
|
#text[#strong[#text(accent-color)[#it.body.text]]]
|
||||||
#box(width: 1fr, line(length: 100%))
|
#box(width: 1fr, line(length: 100%))
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -401,24 +546,36 @@
|
|||||||
align(right)[
|
align(right)[
|
||||||
#pad(bottom: 5pt)[
|
#pad(bottom: 5pt)[
|
||||||
#block[
|
#block[
|
||||||
#set text(size: 32pt, style: "normal", font: ("Roboto"))
|
#set text(
|
||||||
#text(accent_color, weight: "thin")[#author.firstname]
|
size: 32pt,
|
||||||
|
style: "normal",
|
||||||
|
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(weight: "bold")[#author.lastname]
|
#text(weight: "bold")[#author.lastname]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
let positions = {
|
let positions = {
|
||||||
set text(
|
set text(
|
||||||
accent_color,
|
accent-color,
|
||||||
size: 9pt,
|
size: 9pt,
|
||||||
weight: "regular"
|
weight: "regular",
|
||||||
)
|
)
|
||||||
align(right)[
|
align(right)[
|
||||||
#smallcaps[
|
#smallcaps[
|
||||||
#author.positions.join(
|
#author.positions.join(
|
||||||
text[#" "#sym.dot.c#" "]
|
text[#" "#sym.dot.c#" "],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -428,11 +585,13 @@
|
|||||||
set text(
|
set text(
|
||||||
size: 9pt,
|
size: 9pt,
|
||||||
weight: "bold",
|
weight: "bold",
|
||||||
fill: color-gray
|
fill: color-gray,
|
||||||
)
|
)
|
||||||
align(right)[
|
align(right)[
|
||||||
|
#if ("address" in author) [
|
||||||
#author.address
|
#author.address
|
||||||
]
|
]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
let contacts = {
|
let contacts = {
|
||||||
@@ -441,23 +600,37 @@
|
|||||||
let separator = [#box(sym.bar.v)]
|
let separator = [#box(sym.bar.v)]
|
||||||
|
|
||||||
align(right)[
|
align(right)[
|
||||||
#set text(size: 8pt, weight: "light", style: "normal")
|
#set text(
|
||||||
|
size: 8pt,
|
||||||
|
weight: "light",
|
||||||
|
style: "normal",
|
||||||
|
)
|
||||||
#block[
|
#block[
|
||||||
#align(horizon)[
|
#align(horizon)[
|
||||||
#stack(dir: ltr, spacing: 0.5em,
|
#stack(
|
||||||
phone-icon,
|
dir: ltr,
|
||||||
box[#text(author.phone)],
|
spacing: 0.5em,
|
||||||
separator,
|
if ("phone" in author) [
|
||||||
email-icon,
|
#phone-icon
|
||||||
box[#link("mailto:" + author.email)[#author.email]],
|
#box[#text(author.phone)]
|
||||||
separator,
|
#separator
|
||||||
github-icon,
|
],
|
||||||
box[#link("https://github.com/" + author.github)[#author.github]],
|
if ("email" in author) [
|
||||||
separator,
|
#email-icon
|
||||||
linkedin-icon,
|
#box[#link("mailto:" + author.email)[#author.email]]
|
||||||
box[
|
],
|
||||||
|
if ("github" in author) [
|
||||||
|
#separator
|
||||||
|
#github-icon
|
||||||
|
#box[#link("https://github.com/" + author.github)[#author.github]]
|
||||||
|
],
|
||||||
|
if ("linkedin" in author) [
|
||||||
|
#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.firstname #author.lastname]
|
||||||
]
|
]
|
||||||
|
],
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@@ -465,27 +638,40 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
let letter-heading = {
|
let letter-heading = {
|
||||||
grid(columns: (1fr, 2fr),
|
grid(
|
||||||
|
columns: (1fr, 2fr),
|
||||||
rows: (100pt),
|
rows: (100pt),
|
||||||
align(left + horizon)[
|
align(left + horizon)[
|
||||||
#block(clip: true, stroke: 0pt, radius: 2cm,
|
#block(
|
||||||
width: 4cm, height: 4cm, profile_picture)
|
clip: true,
|
||||||
|
stroke: 0pt,
|
||||||
|
radius: 2cm,
|
||||||
|
width: 4cm,
|
||||||
|
height: 4cm,
|
||||||
|
profile-picture,
|
||||||
|
)
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
#name
|
#name
|
||||||
#positions
|
#positions
|
||||||
#address
|
#address
|
||||||
#contacts
|
#contacts
|
||||||
]
|
],
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
let letter_conclusion = {
|
let letter-conclusion = {
|
||||||
align(bottom)[
|
align(bottom)[
|
||||||
#pad(bottom: 2em)[
|
#pad(bottom: 2em)[
|
||||||
#text(weight: "light")[Sincerely,] \
|
#text(weight: "light")[#linguify(
|
||||||
|
"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")[Attached: Curriculum Vitae]
|
#text(weight: "light", style: "italic")[ #linguify(
|
||||||
|
"attached",
|
||||||
|
from: lang_data,
|
||||||
|
)#sym.colon #linguify("curriculum-vitae", from: lang_data)]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -494,42 +680,53 @@
|
|||||||
letter-heading
|
letter-heading
|
||||||
body
|
body
|
||||||
linebreak()
|
linebreak()
|
||||||
letter_conclusion
|
letter-conclusion
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Cover letter heading that takes in the information for the hiring company and formats it properly.
|
/// 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)
|
/// - 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)
|
set par(leading: 1em)
|
||||||
pad(top: 1.5em, bottom: 1.5em)[
|
pad(top: 1.5em, bottom: 1.5em)[
|
||||||
#__justify_align[
|
#__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]
|
#text(weight: "light", style: "italic", size: 9pt)[#date]
|
||||||
]
|
]
|
||||||
|
|
||||||
#pad(top: 0.65em, bottom: 0.65em)[
|
#pad(top: 0.65em, bottom: 0.65em)[
|
||||||
#text(weight: "regular", fill: color-gray, size: 9pt)[
|
#text(weight: "regular", fill: color-gray, size: 9pt)[
|
||||||
#smallcaps[#entity_info.name] \
|
#smallcaps[#entity-info.name] \
|
||||||
#entity_info.street_address \
|
#entity-info.street-address \
|
||||||
#entity_info.city \
|
#entity-info.city \
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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
|
||||||
#let letter-heading(job_position: "", addressee: "") = {
|
/// - dear (string): optional field for redefining the "dear" variable
|
||||||
|
#let letter-heading(job-position: "", addressee: "", dear: "") = {
|
||||||
|
let lang_data = toml("lang.toml")
|
||||||
|
|
||||||
// TODO: Make this adaptable to content
|
// TODO: Make this adaptable to content
|
||||||
underline(evade: false, stroke: 0.5pt, offset: 0.3em)[
|
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)[
|
pad(top: 1em, bottom: 1em)[
|
||||||
#text(weight: "light", fill: color-gray)[
|
#text(weight: "light", fill: color-gray)[
|
||||||
Dear #addressee,
|
#if dear == "" [
|
||||||
|
#linguify("dear", from: lang_data)
|
||||||
|
] else [
|
||||||
|
#dear
|
||||||
|
]
|
||||||
|
#addressee,
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#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"),
|
||||||
name: "Modern CV",
|
name: "Modern CV",
|
||||||
scope: (resume: lib)
|
scope: (resume: lib),
|
||||||
)
|
)
|
||||||
#tidy.show-module(docs)
|
#tidy.show-module(docs)
|
||||||
|
|||||||
5
scripts/format_typst.ps1
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# 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 }
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#import "@preview/modern-cv:0.2.0":*
|
#import "@preview/modern-cv:0.5.0": *
|
||||||
|
|
||||||
#show: coverletter.with(
|
#show: coverletter.with(
|
||||||
author: (
|
author: (
|
||||||
@@ -11,24 +11,23 @@
|
|||||||
address: "111 Example St. Apt. 111, Example City, EX 11111",
|
address: "111 Example St. Apt. 111, Example City, EX 11111",
|
||||||
positions: (
|
positions: (
|
||||||
"Software Engineer",
|
"Software Engineer",
|
||||||
"Full Stack Developer"
|
"Full Stack Developer",
|
||||||
)
|
|
||||||
),
|
),
|
||||||
profile_picture: image("./profile.png")
|
),
|
||||||
|
profile-picture: image("./profile.png"),
|
||||||
|
language: "en",
|
||||||
)
|
)
|
||||||
|
|
||||||
#hiring-entity-info(
|
#hiring-entity-info(entity-info: (
|
||||||
entity_info: (
|
|
||||||
target: "Company Recruitement Team",
|
target: "Company Recruitement Team",
|
||||||
name: "Google, Inc.",
|
name: "Google, Inc.",
|
||||||
street_address: "1600 AMPHITHEATRE PARKWAY",
|
street-address: "1600 AMPHITHEATRE PARKWAY",
|
||||||
city: "MOUNTAIN VIEW, CA 94043"
|
city: "MOUNTAIN VIEW, CA 94043",
|
||||||
)
|
))
|
||||||
)
|
|
||||||
|
|
||||||
#letter-heading(
|
#letter-heading(
|
||||||
job_position: "Software Engineer",
|
job-position: "Software Engineer",
|
||||||
addressee: "Sir or Madame"
|
addressee: "Sir or Madame",
|
||||||
)
|
)
|
||||||
|
|
||||||
= About Me
|
= About Me
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#import "@preview/modern-cv:0.2.0":*
|
#import "@preview/modern-cv:0.5.0": *
|
||||||
|
|
||||||
#show: coverletter.with(
|
#show: coverletter.with(
|
||||||
author: (
|
author: (
|
||||||
@@ -11,24 +11,23 @@
|
|||||||
address: "111 Example St. Apt. 111, Example City, EX 11111",
|
address: "111 Example St. Apt. 111, Example City, EX 11111",
|
||||||
positions: (
|
positions: (
|
||||||
"Software Engineer",
|
"Software Engineer",
|
||||||
"Full Stack Developer"
|
"Full Stack Developer",
|
||||||
)
|
|
||||||
),
|
),
|
||||||
profile_picture: none
|
),
|
||||||
|
profile-picture: none,
|
||||||
|
language: "sp",
|
||||||
)
|
)
|
||||||
|
|
||||||
#hiring-entity-info(
|
#hiring-entity-info(entity-info: (
|
||||||
entity_info: (
|
|
||||||
target: "Company Recruitement Team",
|
target: "Company Recruitement Team",
|
||||||
name: "Google, Inc.",
|
name: "Google, Inc.",
|
||||||
street_address: "1600 AMPHITHEATRE PARKWAY",
|
street-address: "1600 AMPHITHEATRE PARKWAY",
|
||||||
city: "MOUNTAIN VIEW, CA 94043"
|
city: "MOUNTAIN VIEW, CA 94043",
|
||||||
)
|
))
|
||||||
)
|
|
||||||
|
|
||||||
#letter-heading(
|
#letter-heading(
|
||||||
job_position: "Software Engineer",
|
job-position: "Software Engineer",
|
||||||
addressee: "Sir or Madame"
|
addressee: "Sir or Madame",
|
||||||
)
|
)
|
||||||
|
|
||||||
#coverletter-content[
|
#coverletter-content[
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#import "@preview/modern-cv:0.2.0": *
|
#import "@preview/modern-cv:0.5.0": *
|
||||||
|
|
||||||
#show: resume.with(
|
#show: resume.with(
|
||||||
author: (
|
author: (
|
||||||
@@ -7,16 +7,20 @@
|
|||||||
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: (
|
||||||
"Software Engineer",
|
"Software Engineer",
|
||||||
"Software Architect",
|
"Software Architect",
|
||||||
"Developer"
|
"Developer",
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
date: datetime.today().display(),
|
date: datetime.today().display(),
|
||||||
colored_headers: true
|
language: "en",
|
||||||
|
colored-headers: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
= Experience
|
= Experience
|
||||||
@@ -25,7 +29,8 @@
|
|||||||
title: "Senior Software Engineer",
|
title: "Senior Software Engineer",
|
||||||
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[
|
||||||
@@ -38,7 +43,7 @@
|
|||||||
title: "Software Engineer",
|
title: "Software Engineer",
|
||||||
location: "Example City, EX",
|
location: "Example City, EX",
|
||||||
date: "2011 - 2019",
|
date: "2011 - 2019",
|
||||||
description: "Previous Company, Inc."
|
description: "Previous Company, Inc.",
|
||||||
)
|
)
|
||||||
|
|
||||||
#resume-item[
|
#resume-item[
|
||||||
@@ -53,7 +58,7 @@
|
|||||||
title: "Thread Pool C++ Library",
|
title: "Thread Pool C++ Library",
|
||||||
location: [#github-link("DeveloperPaul123/thread-pool")],
|
location: [#github-link("DeveloperPaul123/thread-pool")],
|
||||||
date: "May 2021 - Present",
|
date: "May 2021 - Present",
|
||||||
description: "Designer/Developer"
|
description: "Designer/Developer",
|
||||||
)
|
)
|
||||||
|
|
||||||
#resume-item[
|
#resume-item[
|
||||||
@@ -65,7 +70,7 @@
|
|||||||
title: "Event Bus C++ Library",
|
title: "Event Bus C++ Library",
|
||||||
location: github-link("DeveloperPaul123/eventbus"),
|
location: github-link("DeveloperPaul123/eventbus"),
|
||||||
date: "Sep. 2019 - Present",
|
date: "Sep. 2019 - Present",
|
||||||
description: "Designer/Developer"
|
description: "Designer/Developer",
|
||||||
)
|
)
|
||||||
|
|
||||||
#resume-item[
|
#resume-item[
|
||||||
@@ -75,9 +80,15 @@
|
|||||||
|
|
||||||
= Skills
|
= 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("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
|
= Education
|
||||||
|
|
||||||
@@ -85,7 +96,7 @@
|
|||||||
title: "Example University",
|
title: "Example University",
|
||||||
location: "Example City, EX",
|
location: "Example City, EX",
|
||||||
date: "August 2014 - May 2019",
|
date: "August 2014 - May 2019",
|
||||||
description: "B.S. in Computer Science"
|
description: "B.S. in Computer Science",
|
||||||
)
|
)
|
||||||
|
|
||||||
#resume-item[
|
#resume-item[
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "modern-cv"
|
name = "modern-cv"
|
||||||
version = "0.2.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>"]
|
||||||
@@ -9,7 +9,7 @@ description = "A modern resume template based on the Awesome-CV Latex template."
|
|||||||
keywords = ["CV", "Curriculum Vitae", "Resume", "Minimalistic", "Professional", "Modern"]
|
keywords = ["CV", "Curriculum Vitae", "Resume", "Minimalistic", "Professional", "Modern"]
|
||||||
categories = ["cv"]
|
categories = ["cv"]
|
||||||
disciplines = []
|
disciplines = []
|
||||||
exclude = ["resume-documentation*", "scripts*"]
|
exclude = ["resume-documentation*", "scripts*", "assets/images/*"]
|
||||||
homepage = "https://github.com/DeveloperPaul123/modern-cv"
|
homepage = "https://github.com/DeveloperPaul123/modern-cv"
|
||||||
repository = "https://github.com/DeveloperPaul123/modern-cv"
|
repository = "https://github.com/DeveloperPaul123/modern-cv"
|
||||||
|
|
||||||
|
|||||||