Skip to content
Permalink
Browse files
add some tips about rstudio
  • Loading branch information
James Brusey committed Oct 7, 2022
1 parent e8fb650 commit 768de525b9163b936079008b50a1cfa4ffcf1ad3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
@@ -10,6 +10,7 @@ For this reason, the recommendations here may differ somewhat from recommendatio
** Also see
| [[file:meetings.org][Meetings]] |
| [[file:planning.org][Planning]] |
| [[file:rstudio-tips.org][RStudio tips]] |

* About novelty
Doing a master's project is similar to doing a PhD but whereas a PhD dissertation is required to be novel, a master's dissertation is definitely not required to involve a novel element.
@@ -0,0 +1,48 @@
#+title: 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:
#+BEGIN_SRC
---
...
output:
pdf_document:
number_sections: true
---
#+END_SRC
This should automatically number your sections.

* Selecting the LaTeX class
I personally prefer the KOMA report class over the LaTeX default.
#+BEGIN_SRC
---
...
documentclass: scrreprt
...
---
#+END_SRC

* Citations
The first thing to know is that to cite a paper with RMarkdown, you need to use the =@= [[https://pandoc.org/MANUAL.html#citation-syntax][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 [[https://christopherjunk.netlify.app/blog/2019/02/25/zotero-rmarkdown/][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
#+BEGIN_SRC
---
...
bibliography: "zotero-export.bib"
...
---
#+END_SRC

0 comments on commit 768de52

Please sign in to comment.