Skip to content
Permalink
768de525b9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Tips for using RStudio to produce your dissertation

If you are using RStudio, here are some tips that might help make your report look great.

Number sections

By default, RStudio / pandoc does not number section headings. To fix this, in the YAML header, use something like:

---
...
output: 
  pdf_document:
    number_sections: true
---

This should automatically number your sections.

Selecting the LaTeX class

I personally prefer the KOMA report class over the LaTeX default.

---
...
documentclass: scrreprt
...
---

Citations

The first thing to know is that to cite a paper with RMarkdown, you need to use the @ citation syntax. The thing after @ is the citation key. Note that you either put the citation in square brackets (for parenthetical citations) or put it without brackets when you want to refer directly to something that the authors did. For example, if we have a paper with key Krizhevsky2012, we might refer to it as, “The ImageNet classification problem has been examined using DCNNs [@Krizhevsky2012]”. In this case, we use square brackets so that the citation is formatted with parentheses. Alternatively, we can put the authors as actors by saying, ”@Krizhevsky2012 applied DCNNs to ImageNet”.

There’s great information on using Zotero with RStudio online. You will probably need to install the Better BibTex add-in for Zotero. I also recommend the Chrome extension for capturing papers to your Zotero library.

Don’t forget to use Better BibTex to export your bibliography to a bib file and refer to it in your document

---
...
bibliography: "zotero-export.bib"
...
---