-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.Rmd
96 lines (78 loc) · 5.14 KB
/
index.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
---
# UNL thesis fields
title: "DISSERTATION TITLE IN ALL CAPS"
author: "Author Full Name"
month: "Month"
year: "Year"
location: "Lincoln, Nebraska"
major: "Statistics"
adviser: "Advisor name"
abstract: |
Here is my abstract. *(350 word limit)*
acknowledgments: |
Thank you to all my people!
dedication: |
Dedicated to...
# End of UNL thesis fields
knit: "bookdown::render_book"
site: bookdown::bookdown_site
output:
bookdown::pdf_book:
pandoc_args: --top-level-division=chapter
keep_tex: yes
latex_engine: xelatex
template: template.tex
huskydown::thesis_gitbook:
style: style.css
# huskydown::thesis_word: default
# huskydown::thesis_epub: default
bibliography: bib/thesis.bib
# Download your specific bibliography database file and refer to it in the line above.
csl: bib/apa.csl
# Download your specific csl file and refer to it in the line above.
lot: true
lof: true
#header-includes:
#- \usepackage{tikz}
---
<!--
Above is the YAML (YAML Ain't Markup Language) header that includes a lot of metadata used to produce the document. Be careful with spacing in this header!
If you'd like to include a comment that won't be produced in your resulting file enclose it in a block like this.
-->
<!--
If you receive a duplicate label error after knitting, make sure to delete the index.Rmd file and then knit again.
-->
```{r setup, include = F}
options(width = 60)
knitr::opts_chunk$set(
fig.width = 6, fig.height = 4,
out.width = "\\linewidth", dpi = 300,
tidy = T, tidy.opts=list(width.cutoff=45)
)
```
```{r include_packages, include = FALSE}
# This chunk ensures that the huskydown package is
# installed and loaded. This huskydown package includes
# the template files for the thesis.
if(!require(devtools))
install.packages("devtools",
repos = "http://cran.rstudio.com")
if(!require(huskydown))
devtools::install_github(
"benmarwick/huskydown"
)
library(huskydown)
```
<!-- The {.unnumbered} option here means that the introduction will be "Chapter 0." You can also use {-} for no numbers on chapters. -->
<!-- # Introduction {.unnumbered} -->
# Introduction
Editing text colors: \authorcol{Author's editing color. Use \expandafter\string\authorcol{}} Author may also use mostly black text as well. \chaircol{Chair's editing color. Use \expandafter\string\chaircol{}} \cochaircol{Co-chair's editing color. Use \expandafter\string\cochaircol{}} Redefine commands in unlthesis.cls with initials.
Welcome to the _R Markdown_ thesis template. This template is based on (and in many places copied directly from) the UW LaTeX template, and has been modified to use the UNL LaTeX thesis class maintained by the math department. Hopefully it will provide a nicer interface for those that have never used TeX or LaTeX before.
Using _R Markdown_ will also allow you to easily keep track of your analyses in **R** chunks of code, with the resulting plots and output included as well. The hope is this _R Markdown_ template gets you in the habit of doing reproducible research, which benefits you long-term as a researcher, but also will greatly help anyone that is trying to reproduce or build onto your results down the road.
Hopefully, you won't have much of a learning period to go through and you will reap the benefits of a nicely formatted thesis. The use of LaTeX in combination with _Markdown_ is more consistent than the output of a word processor, much less prone to corruption or crashing, and the resulting file is smaller than a Word file. While you may have never had problems using Word in the past, your thesis is likely going to be at least twice as large and complex as anything you've written before, taxing Word's capabilities. After working with _Markdown_ and **R** together for a few weeks, we are confident this will be your reporting style of choice going forward.
<!-- If you're still on the fence about using _R Markdown_, check out the resource for newbies available at <https://ismayc.github.io/rbasics-book/> . -->
**Why use it?**
_R Markdown_ creates a simple and straightforward way to interface with the beauty of LaTeX. Packages have been written in **R** to work directly with LaTeX to produce nicely formatting tables and paragraphs. In addition to creating a user friendly interface to LaTeX, _R Markdown_ also allows you to read in your data, to analyze it and to visualize it using **R** functions, and also to provide the documentation and commentary on the results of your project. Further, it allows for **R** results to be passed inline to the commentary of your results. You'll see more on this later.
<!-- Having your code and commentary all together in one place has a plethora of benefits! -->
**Who should use it?**
Anyone who needs to use data analysis, math, tables, a lot of figures, complex cross-references, or who just cares about the final appearance of their document should use _R Markdown_. Of particular use should be anyone in the sciences, but the user-friendly nature of _Markdown_ and its ability to keep track of and easily include figures, automatically generate a table of contents, index, references, table of figures, etc. should make it of great benefit to nearly anyone writing a thesis project.