-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathskeleton_english.Rmd
170 lines (146 loc) · 4.05 KB
/
skeleton_english.Rmd
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
---
output:
pdf_document:
latex_engine: xelatex
template: template.tex
keep_tex: true
documentclass: extarticle
fontsize: 14pt
params:
title:
label: Title for certificate
value: "CERTIFICATE OF CONCLUSION"
input: text
attendee:
label: Attendee
value: Participant's name
input: text
action_text:
label: Action text between name and workshop title.
value: "Attended the Meetup"
input: text
workshop:
label: Workshop title
value: Event name
input: text
date:
label: Date of workshop
value: !r lubridate::today() #format(Sys.time(), "%b %d %Y")
input: date
location:
label: Location of workshop
value: R-Ladies (city)
input: text
hours:
label: Carga horária do curso
value: "Hours of Instruction: X hours"
input: text
curriculum_title:
lable: Header before curriculum content
value: "Course contents:"
input: text
curriculum:
label: Path to file containing curriculum content
value: "Content 1; Content 2; Content 3; Content 4; Content 5; Content 6; Content 7; Content 8; Content 9; Content 10; Content 11; Content 12; Content 13; Content 14; Content 15; Content 16; Content 17; Content 18; Content 19; Content 20."
input: text
certifier:
label: Certifying person full name
value: Name of the event organizer
credentials:
label: Certifying person credentials
value: Organizer
input: text
organization:
label: Decription of the organization running the workshops
value: R-Ladies is a worldwide organization whose mission is to promote gender diversity in the R community
input: text
organization_url:
label: Organization URL without https://
value: rladies.org/
input: text
signature:
label: Path to file containing image of signature
value: NULL
input: file
signature_skip:
label: Space to skip between signature image and signature line, in cm.
value: -0.4
input: numeric
border_image:
label: Path to file containing border image
value: !r system.file("rmarkdown", "extdata","assets")
input: file
papersize:
label: Paper size of output PDF
value: landscape
input: text
---
---
title: "`r params$title`"
classoption: "`r params$papersize`"
organization: "`r gsub("[\r\n]", " ", params$organization)`"
organization_url: "`r params$organization_url`"
border_image: "`r 'true'[params$border_image]`"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE,
message = FALSE,
warning = FALSE,
fig.align = "center")
```
\begin{center}
\LARGE \textbf {
```{r attendee, results = 'asis'}
# thanks so much https://stackoverflow.com/questions/46226364/passing-parameters-in-rmarkdown-to-the-text-or-headings
cat(params$attendee)
```
}
\vspace{1cm}
\normalsize \textbf {
```{r action_text, results = 'asis'}
cat(as.character(params$action_text), "\n")
```
}
\vspace{0.5cm}
\large \textbf {
```{r workshop, results = 'asis'}
cat(as.character(params$workshop), "\n")
```
}
\large \textbf {
```{r location, results = 'asis'}
cat("on ", as.character(params$date), " at the community ", params$location, "\n", sep = "")
```
}
\vspace{0.5cm}
\large {
```{r hours, results = 'asis', }
cat(params$hours, "\n", sep = "")
```
}
\vspace{0.5cm}
\normalsize \textbf {
```{r curriculum_title, results = 'asis'}
cat(params$curriculum_title, "\n")
```
}
\vspace{0.5cm}
\normalsize
\begin{varwidth}{0.8\textwidth}
```{r curriculum, results = 'asis'}
cat(params$curriculum, sep = "\n")
```
\end{varwidth}
\vfill
\vspace{0.5cm}
```{r signature, results = 'asis'}
if (!is.null(params$signature)) {
cat("\\includegraphics[height=2\\baselineskip]{signature} \\vspace{",
params$signature_skip, "cm}")
}
```
\rule[0in]{3in}{1pt}\\
\textbf{`r params$certifier`\\
`r params$credentials`}\\
\vspace{0.5cm}
\end{center}