This package provides a template for writing theses and dissertations at the University of Kansas using rmarkdown and bookdown. Much of this was inspired by the thesisdown package by Chester Ismay.
The original LaTeX template and class document were written by Paul Johnson, and modified for use with pandoc and R markdown.
You can install jayhawkdown from github with:
# install.packages("devtools")
devtools::install_github("wjakethompson/jayhawkdown")
You also need a working LaTeX program:
The recommended way to use this template is with RStudio; however, it is possible to use this template with a different IDE.
-
Open a new RStudio window.
-
Open a new R Markdown document.
-
Select from templates, the University of Kansas Thesis template from the jayhawkdown package.
-
Because there are multiple files for this template, you must create a directory to house them, and choose a location for the directory. I suggest calling this directory
index
(you can change this later, but this will make your main R Markdown document be calledindex.rmd
). -
Select “OK”, and the template should open automatically. Press the “Knit” button at the top of the editor to render the template, and read the document for instructions on how to edit the template for your specific paper.
-
If the PDF does not open automatically, you will be able to find it in the newly created
_book/
directory.
If you are not using RStudio, you can create a new R Markdown from the
jayhawkdown template by using rmarkdown::draft()
.
-
Open R in your preferred IDE.
-
Open the jayhawkdown template using
rmarkdown::draft()
. This will create a directory calledindex/
(or whatever you name the R Markdown document) in your current working directory.rmarkdown::draft("index.rmd", template = "kansas", package = "jayhawkdown", create_dir = TRUE)
-
When the template opens, you can render the document using
bookdown::render_book()
.setwd("index/") bookdown::render_book("index.rmd", "jayhawkdown::thesis_pdf")
-
If the PDF does not open automatically, you will be able to find it in the newly created
_book/
directory.
If the example PDF fails to render, try these steps:
- If you are not using RStudio, attempt to render in RStudio.
- Make sure your LaTeX environment was successfully setup.
- Make sure your R packages are up to date, specifically rmarkdown, bookdown, jayhawkdown, and knitr.
If errors persist after trying all of these steps, post your process along with the resulting error to a new issue on Github, and I will try to help.