ismayc / thesisdown

An updated R Markdown thesis template using the bookdown package
Other
809 stars 357 forks source link

Add an optional list of abbreviations and allow single quotes in prelims #183

Closed Samasaur1 closed 1 year ago

Samasaur1 commented 2 years ago

This PR fixes two issues I've encountered with thesisdown.

  1. Although the Reed College thesis template provides for a list of abbreviations, thesisdown does not. I have added an optional list of abbreviations in the YAML front matter for index.Rmd which is inserted into the LaTeX template. If the list of abbreviations is left out of the YAML, nothing different happens to the LaTeX file. These changes have been made for both the "New Project" option and the "New File->R Markdown" option.
  2. When using the thesisdown template, by default you write your abstract in a different file. However, if that file contains any single quotes/apostrophes ('), it will totally break the project. This is because of how R inserts the file into YAML after reading it. I have changed it from single quotes to a "block scalar", which allows any special characters in the abstract.Rmd file. This change has also been made for both the "New Project" option and the "New File->R Markdown" option. (closes #184)

I have tested both of these in RStudio when doing remotes::install_github("Samasaur1/thesisdown") instead of ismayc/thesisdown, and they both worked for both the "New Project" option and the "New File->R Markdown" option.

github-actions[bot] commented 1 year ago

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org whenever possible) and link to this issue. If a reprex is not applicable, recording a short Loom video showing what you are seeing can go a long way in helping to diagnose problems.