|
2 | 2 | format: gfm |
3 | 3 | --- |
4 | 4 |
|
5 | | -# Quarto-awesomecv-typst Format |
| 5 | +# quarto-awesomecv-typst Format |
6 | 6 |
|
7 | 7 | A Quarto + Typst implementation of Byungjin Park’s [Awesome-CV](https://github.com/posquit0/Awesome-CV). |
8 | 8 | The Typst implementation part is inspired by Paul Tsouchlos’s [modern-cv](https://typst.app/universe/package/modern-cv/) |
9 | 9 |
|
10 | 10 | ```{r} |
11 | 11 | #| include: false |
12 | 12 | system2( |
13 | | - "pdftocairo", |
14 | | - args = c("-png", "_site/template.pdf", "assets/img/template") |
| 13 | + "pdftocairo", |
| 14 | + args = c("-png", "_site/template.pdf", "assets/img/template") |
15 | 15 | ) |
16 | 16 | system2( |
17 | | - "magick", |
18 | | - args = c( |
19 | | - "assets/img/template-1.png", |
20 | | - "-crop", |
21 | | - "2000x600+0+0", |
22 | | - "assets/img/thumbnail.png" |
23 | | - ) |
| 17 | + "magick", |
| 18 | + args = c( |
| 19 | + "assets/img/template-1.png", |
| 20 | + "-crop", |
| 21 | + "2000x600+0+0", |
| 22 | + "assets/img/thumbnail.png" |
| 23 | + ) |
24 | 24 | ) |
25 | 25 | unlink("assets/img/template-1.png") |
26 | 26 | ``` |
@@ -68,21 +68,25 @@ via [duskmoon314/typst-fontawesome](https://github.com/duskmoon314/typst-fontawe |
68 | 68 |
|
69 | 69 | ### Fonts & Color |
70 | 70 |
|
71 | | -You can set fonts and the accent color in YAML. |
| 71 | +You can set fonts and the accent color by [_brand.yml](https://quarto.org/docs/authoring/brand.html) notation in YAML. |
72 | 72 |
|
73 | 73 | ```yaml |
74 | | -style: |
75 | | - color-accent: "516db0" |
76 | | - color-link: "202b47" |
77 | | - font-header: "Roboto" |
78 | | - font-text: "Source Sans Pro" |
79 | | -format: |
80 | | - awesomecv-typst: |
81 | | - font-paths: ["PATH_TO_FONT"] |
| 74 | +brand: |
| 75 | + typography: |
| 76 | + fonts: |
| 77 | + - family: Roboto |
| 78 | + source: google |
| 79 | + - family: Source Sans 3 |
| 80 | + source: google |
| 81 | + base: Source Sans 3 |
| 82 | + color: |
| 83 | + primary: "#516db0" |
| 84 | + link: "#202b47" |
| 85 | + defaults: |
| 86 | + awesomecv-typst: |
| 87 | + font-header: Roboto |
82 | 88 | ``` |
83 | 89 |
|
84 | | -By default, it uses the system fonts, but you can specify the font paths in the `font-paths` field (e.g., GitHub Actions usage.) |
85 | | - |
86 | 90 | ### Profile Photo |
87 | 91 |
|
88 | 92 | You can set a profile photo in YAML. |
@@ -124,46 +128,46 @@ Please refer to the package [documentation](http://kazuyanagimoto.com/typstcv/) |
124 | 128 | library(typstcv) |
125 | 129 |
|
126 | 130 | educ <- data.frame( |
127 | | - title = c("Ph.D. in Physics", "Master of Science"), |
128 | | - location = c("Zürich, Switzerland", "Zürich, Switzerland"), |
129 | | - date = c("1905", "1896 - 1900"), |
130 | | - description = c("University of Zürich", "ETH") |
| 131 | + title = c("Ph.D. in Physics", "Master of Science"), |
| 132 | + location = c("Zürich, Switzerland", "Zürich, Switzerland"), |
| 133 | + date = c("1905", "1896 - 1900"), |
| 134 | + description = c("University of Zürich", "ETH") |
131 | 135 | ) |
132 | 136 |
|
133 | 137 | resume_entry(educ) |
134 | 138 | ``` |
135 | 139 |
|
136 | 140 | ```{r} |
137 | 141 | award <- data.frame( |
138 | | - title = c("Nobel Prize in Physics"), |
139 | | - location = c("Stockholm, Sweden"), |
140 | | - date = c("1921"), |
141 | | - description = c("For his services to"), |
142 | | - detail1 = c("Theoretical Physics"), |
143 | | - detail2 = c("Discovery of the law of the photoelectric effect") |
| 142 | + title = c("Nobel Prize in Physics"), |
| 143 | + location = c("Stockholm, Sweden"), |
| 144 | + date = c("1921"), |
| 145 | + description = c("For his services to"), |
| 146 | + detail1 = c("Theoretical Physics"), |
| 147 | + detail2 = c("Discovery of the law of the photoelectric effect") |
144 | 148 | ) |
145 | 149 |
|
146 | 150 | resume_entry(award, details = c("detail1", "detail2")) |
147 | 151 | ``` |
148 | 152 |
|
149 | 153 | ```{r} |
150 | 154 | work <- data.frame( |
151 | | - title = c("Technical Assistant", "Junior Professor", "Associate Professor"), |
152 | | - location = c( |
153 | | - "Bern, Switzerland", |
154 | | - "Bern, Switzerland", |
155 | | - "Zürich, Switzerland" |
156 | | - ), |
157 | | - start = as.Date(c("1902-01-01", "1908-01-01", "1909-01-01")), |
158 | | - end = as.Date(c("1908-01-01", "1909-01-01", "1911-01-01")), |
159 | | - description = c( |
160 | | - "Federal Patent Office", |
161 | | - "University of Bern", |
162 | | - "University of Zürich" |
163 | | - ) |
| 155 | + title = c("Technical Assistant", "Junior Professor", "Associate Professor"), |
| 156 | + location = c( |
| 157 | + "Bern, Switzerland", |
| 158 | + "Bern, Switzerland", |
| 159 | + "Zürich, Switzerland" |
| 160 | + ), |
| 161 | + start = as.Date(c("1902-01-01", "1908-01-01", "1909-01-01")), |
| 162 | + end = as.Date(c("1908-01-01", "1909-01-01", "1911-01-01")), |
| 163 | + description = c( |
| 164 | + "Federal Patent Office", |
| 165 | + "University of Bern", |
| 166 | + "University of Zürich" |
| 167 | + ) |
164 | 168 | ) |
165 | 169 |
|
166 | 170 | work |> |
167 | | - format_date(end = "end", date_format = "%Y", sort_by = "start") |> |
168 | | - resume_entry() |
| 171 | + format_date(end = "end", date_format = "%Y", sort_by = "start") |> |
| 172 | + resume_entry() |
169 | 173 | ``` |
0 commit comments