-
Notifications
You must be signed in to change notification settings - Fork 4
/
example_dissertation.Rmd
99 lines (76 loc) · 2.21 KB
/
example_dissertation.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
---
title: "Treble in River City: All about that Bass"
author:
first: Virginia
last: Coopersnickles
middle: P.
year: 2017
fontsize: 12pt
output:
pdf_document:
citation_package: natbib
keep_tex: true
fig_caption: true
latex_engine: pdflatex
template: template/template.tex
includes:
in_header: example_header_include.tex
bibliography: example.bib
bibliography-style: asa
toc: true
lot: true
lof: true
committee:
advisors:
- Dr. Sara Goldfinger
- Dr. Patricia No
members:
- Dr. Who
- Mr. Mick Jagger
- Dr. Strangelove
- Dr. Doolittle
degree: Doctor of Philosophy
department: Biostatistics
school: Gillings School of Global Public Health
dedication: I hope we passed the audition.
abstract: Here's a little thing I wrote. You might want to read it word for word.
acknowledgements: Thanks grandma!
abbreviations:
- short: LM
long: "Linear Model"
- short: GLM
long: "Generalized Linear Model"
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Introduction
## Getting started
This is an example thesis .Rmd template, which, when compiled, uses the `template.tex` file to create both a `.tex` file and a `.pdf` file.
NOTE: `template.tex` is under development.
You can put custom definitions in a file to be included in the .tex header. For example, putting
```
\def\cA{{\mathcal{A}}}
```
in `example_header_include.tex` allow you to type `\cA` in the text which, when compiled, yields: $\cA$. Change the filename as necessary but be sure to update the filename in the YAML header.
## Another thing
I have more to say such as, "I can put a table here"
\begin{table}[ht]
\caption{This is my first table.}
\label{tab:1}
\begin{tabular}{c|c}
$\sigma$ & $\theta$ \\
\hline \\
1.2 & 4
\end{tabular}
\end{table}
# My estimator beats your estimator
## Put all you work here
One could put all the text in a single `.Rmd` file.
## Or in separate files
```{r, child='example_child.Rmd'}
```
# How to cite
You can also cite other papers.
## rmarkdown syntax
You cite articles using `rmarkdown` syntax (google rmarkdown for helpful hints). For example, @halmos1970howto is a good text read. Or writing about mathematics is challenging [@halmos1970howto].