forked from schochastics/modern2-cv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.qmd
109 lines (98 loc) · 2.4 KB
/
template.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
title: "In Memoriam"
format:
modern2-cv-pdf: default
author: Sir William Osler
cvfont: raleway #texlive fonts like raleway,fetamont,gillius,comfortaa
cvcolor:
main: B83B5E
alt: 464646
accent: 6A2C70
jobtitle: Father of Modern Medicine
bibliography: works.bib
citeproc: true
csl: vancouver.csl
csl-refs: true
sidebar:
image: portrait.jpg
bullets:
- Canadian
- Physician
- Sweet Moustache
sections:
- name: About
items:
- exposition: true
p1: |
Physician, pathologist, internist, educator, bibliophile, author and historian.
p2: |
"He who studies medicine without books sails an uncharted sea, but he who studies medicine without patients does not go to sea at all."
- name: Skills
items:
- text: Physical Examination
exp:
text: "10+ yrs."
num: 1
- text: Python
exp:
text: "0 yrs."
num: 0
- name: Education
items:
- text: "Doctor of Medicine"
inst: "University of Toronto"
time: "1869 - 1872"
- name: Contact
items:
- icon: envelope-open
text: What is Email?
- icon: phone-alt
text: "0000 0002"
execute:
echo: false
---
```{r}
#| label: cvevents
cvevents <- function(tbl, when, what, where, descr) {
command_start <- "\\cvevent"
tbl[[where]] <- gsub("\n", " \\\\newline ", tbl[[where]])
res <- paste0(
command_start, "{", tbl[[when]], "}",
"{", tbl[[what]], "}",
"{", tbl[[where]], "}",
"{", tbl[[descr]], "}"
)
cat(res, sep = "\n\n\n")
}
cvproj <- function(tbl,what,role,items){
command_start <- "\\cvproj"
res <- paste0(
command_start, "{", tbl[[what]], "}",
"{", tbl[[role]], "}",
"{", sapply(tbl[[items]], function(x)paste0(x,collapse = ", ")), "}"
)
cat(res, sep = "\n\n\n")
}
```
# Experience
```{r}
#| label: experience
#| output: asis
tibble::tribble(
~role, ~institution, ~dates, ~details,
"Regis Professor of Medicine",
"Oxford University", "1905-1919",
"Died in office.",
"Another Position",
"Somewhere else", "",
"Demonstrating that an item can be added with a blank date period."
) |>
cvevents(when = "dates", what = "role", where = "institution", descr = "details")
```
# Publications
---
nocite: |
@*
---
::: {#refs}
:::