-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathThesis.Rnw
118 lines (81 loc) · 3.1 KB
/
Thesis.Rnw
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
% ===========================================================================================================
% TEX file generated by R with the 'knitr' package
%
% DO NOT EDIT THE TEX FILE DIRECTLY
% ===========================================================================================================
\documentclass{report}
\input{Preamble}
\begin{document}
<<knitr-setup, include = FALSE, cache = FALSE>>=
library(knitr)
set.seed(9430L)
# To avoid unnecessary warnings if doing sequential computations
if (is.null(getDoParName())) registerDoSEQ()
# Embedded knitr.sty
opts_knit$set(self.contained = TRUE)
# load.utils is so that each chunk reloads libraries/functions if it needs to be updated
knit_hooks$set(load.utils = utils_hook,
rand.seed = seeds_hook)
# Defaults
opts_chunk$set(fig.width = 12, fig.asp = 0.5625,
out.width = "\\linewidth",
fig.align = "center", fig.pos = "htpb",
cache = TRUE, echo = FALSE, autodep = TRUE,
cache.path = "Data/cache/",
load.utils = TRUE, rand.seed = TRUE)
@
% ===========================================================================================================
% Cover
% ===========================================================================================================
\title{Thesis Template using R and knitr}
\author{Alexis Sard\'a-Espinosa}
\date{\today}
\maketitle
% ===========================================================================================================
% Front matter
% ===========================================================================================================
\pagenumbering{Roman}
\chapter*{Dedication}
To me
\chapter*{Abstract}
Abstract goes here
\chapter*{Declaration}
I declare that..
\chapter*{Acknowledgements}
I want to thank...
\tableofcontents
\listoffigures
\listoftables
% ===========================================================================================================
% Main matter
% ===========================================================================================================
\cleardoublepage
\pagenumbering{arabic}
\chapter{Introduction}
\label{ch:introduction}
\input{Introduction/Introduction}
\chapter{Organization}
\label{ch:organization}
\input{Organization/Organization}
\chapter{Examples}
\label{ch:examples}
<<examples-basics, child = "Examples/Basics.Rnw">>=
@
<<examples-figures, child = "Examples/Figures.Rnw">>=
@
<<examples-tables, child = "Examples/Tables.Rnw">>=
@
% ===========================================================================================================
% Bibliography
% ===========================================================================================================
\bibliographystyle{plainnat}
\nocite{*}
\bibliography{References}
\cleardoublepage
% ===========================================================================================================
% Appendices
% ===========================================================================================================
\appendix
\chapter{First Appendix}
In case it's needed.
\end{document}