-
Notifications
You must be signed in to change notification settings - Fork 13
/
00-preamble.Rmd
59 lines (48 loc) · 1.19 KB
/
00-preamble.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
```{=latex}
\pagenumbering{roman}
```
```{r include=FALSE}
library(knitr)
```
`r if (knitr:::is_html_output()) '
# Declaration{-}
'`
`r if (knitr:::is_latex_output()) '
# Declaration {.unlisted .unnumbered}
'`
I hereby declare that this dissertation is all my own original work and that all sources have been acknowledged. It is xxx words in length
`r if (knitr:::is_html_output()) '
# Acknowledgements{-}
'`
`r if (knitr:::is_latex_output()) '
# Acknowledgements {.unlisted .unnumbered}
'`
I would like to thank blah blah
```{=latex}
% Trigger ToC creation in LaTeX
\setcounter{tocdepth}{3}
\tableofcontents
\listoffigures
\listoftables
```
`r if (knitr:::is_html_output()) '
# Abbreviations{-}
'`
`r if (knitr:::is_latex_output()) '
# Abbreviations {.unlisted .unnumbered}
'`
```{r abbreviations, echo=FALSE, message=FALSE, warning=FALSE}
library(tidyverse)
library(knitr)
library(kableExtra)
library(readxl)
library(fs)
library(here)
read_excel(here("tables", "abbreviations.xlsx"))%>%
arrange(Term) %>% # i.e. alphabetical order by Term
knitr::kable(booktabs = TRUE)%>% # booktab = T gives us a pretty APA-ish table
kable_styling(position = "center")%>%
row_spec(.,
row=0,
bold = TRUE)
```