diff --git a/inst/rmarkdown/templates/thesis/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/thesis/skeleton/skeleton.Rmd index bb936e2d..c346bacf 100644 --- a/inst/rmarkdown/templates/thesis/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/thesis/skeleton/skeleton.Rmd @@ -34,7 +34,8 @@ output: # (e.g., abstract, acknowledgements) below or use code similar to line 25-26 # for the .RMD files. If you are NOT producing a PDF, delete or silence # lines 25-39 in this YAML header. -abstract: '`r if(knitr:::is_latex_output()) paste(readLines(here::here("prelims", "00-abstract.Rmd")), collapse = "\n ")`' +abstract: | + `r if(knitr:::is_latex_output()) paste(readLines(here::here("prelims", "00-abstract.Rmd")), collapse = "\n ")` # If you'd rather include the preliminary content in files instead of inline # like below, use a command like that for the abstract above. Note that a tab # is needed on the line after the `|`. @@ -45,6 +46,14 @@ dedication: | preface: | This is an example of a thesis setup to use the reed thesis document class (for LaTeX) and the R bookdown package, in general. +abbreviations: + ABC: American Broadcasting Company + CBS: Colombia Broadcasting System + CUS: Computer User Services + PBS: Public Broadcasting System + NBC: National Broadcasting Company +# Note that abbreviations in lowercase letters will NOT be automatically capitalized +# Delete or silence the abbreviations section if you do not want a list of abbreviations # Specify the location of the bibliography below bibliography: bib/thesis.bib diff --git a/inst/rmarkdown/templates/thesis/skeleton/template.tex b/inst/rmarkdown/templates/thesis/skeleton/template.tex index 509170b0..f56d4913 100644 --- a/inst/rmarkdown/templates/thesis/skeleton/template.tex +++ b/inst/rmarkdown/templates/thesis/skeleton/template.tex @@ -207,6 +207,18 @@ \end{preface} $endif$ +$if(abbreviations)$ +\chapter*{List of Abbreviations} +\begin{table}[h] + \centering + \begin{tabular}{ll} + $for(abbreviations/pairs)$ + \textbf{$it.key$} & $it.value$ \\ + $endfor$ + \end{tabular} +\end{table} +$endif$ + $if(toc)$ \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$} \setcounter{secnumdepth}{$toc-depth$} diff --git a/inst/rstudio/templates/project/resources/index.Rmd b/inst/rstudio/templates/project/resources/index.Rmd index bb936e2d..c346bacf 100644 --- a/inst/rstudio/templates/project/resources/index.Rmd +++ b/inst/rstudio/templates/project/resources/index.Rmd @@ -34,7 +34,8 @@ output: # (e.g., abstract, acknowledgements) below or use code similar to line 25-26 # for the .RMD files. If you are NOT producing a PDF, delete or silence # lines 25-39 in this YAML header. -abstract: '`r if(knitr:::is_latex_output()) paste(readLines(here::here("prelims", "00-abstract.Rmd")), collapse = "\n ")`' +abstract: | + `r if(knitr:::is_latex_output()) paste(readLines(here::here("prelims", "00-abstract.Rmd")), collapse = "\n ")` # If you'd rather include the preliminary content in files instead of inline # like below, use a command like that for the abstract above. Note that a tab # is needed on the line after the `|`. @@ -45,6 +46,14 @@ dedication: | preface: | This is an example of a thesis setup to use the reed thesis document class (for LaTeX) and the R bookdown package, in general. +abbreviations: + ABC: American Broadcasting Company + CBS: Colombia Broadcasting System + CUS: Computer User Services + PBS: Public Broadcasting System + NBC: National Broadcasting Company +# Note that abbreviations in lowercase letters will NOT be automatically capitalized +# Delete or silence the abbreviations section if you do not want a list of abbreviations # Specify the location of the bibliography below bibliography: bib/thesis.bib diff --git a/inst/rstudio/templates/project/resources/template.tex b/inst/rstudio/templates/project/resources/template.tex index 6db24bcb..efc18274 100644 --- a/inst/rstudio/templates/project/resources/template.tex +++ b/inst/rstudio/templates/project/resources/template.tex @@ -207,6 +207,18 @@ \end{preface} $endif$ +$if(abbreviations)$ +\chapter*{List of Abbreviations} +\begin{table}[h] + \centering + \begin{tabular}{ll} + $for(abbreviations/pairs)$ + \textbf{$it.key$} & $it.value$ \\ + $endfor$ + \end{tabular} +\end{table} +$endif$ + $if(toc)$ \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$} \setcounter{secnumdepth}{$toc-depth$}