diff --git a/inst/rmarkdown/templates/iqss/resources/template.tex b/inst/rmarkdown/templates/iqss/resources/template.tex index 92ed029..bcbc693 100644 --- a/inst/rmarkdown/templates/iqss/resources/template.tex +++ b/inst/rmarkdown/templates/iqss/resources/template.tex @@ -1,10 +1,14 @@ \PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere \PassOptionsToPackage{hyphens}{url} \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} +\IfFileExists{pgfpages.sty}{\usepackage{pgfpages}}{} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $if(fontfamily)$ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} $else$ @@ -273,7 +277,7 @@ $endfor$ \AtBeginSubsection[]{} -%% +%% $if(title)$ diff --git a/inst/rmarkdown/templates/metropolis/resources/template.tex b/inst/rmarkdown/templates/metropolis/resources/template.tex index a434ae4..42a8094 100644 --- a/inst/rmarkdown/templates/metropolis/resources/template.tex +++ b/inst/rmarkdown/templates/metropolis/resources/template.tex @@ -1,10 +1,14 @@ \PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere \PassOptionsToPackage{hyphens}{url} \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} +\IfFileExists{pgfpages.sty}{\usepackage{pgfpages}}{} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $if(fontfamily)$ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} $else$ diff --git a/inst/rmarkdown/templates/monash/resources/template.tex b/inst/rmarkdown/templates/monash/resources/template.tex index 14326b3..86e2480 100644 --- a/inst/rmarkdown/templates/monash/resources/template.tex +++ b/inst/rmarkdown/templates/monash/resources/template.tex @@ -1,10 +1,14 @@ \PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere \PassOptionsToPackage{hyphens}{url} \documentclass[$if(fontsize)$$fontsize$,$else$14pt,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} +\IfFileExists{pgfpages.sty}{\usepackage{pgfpages}}{} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: } \setbeamercolor{caption name}{fg=normal text.fg} \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ +$for(beameroption)$ +\setbeameroption{$beameroption$} +$endfor$ $if(fontfamily)$ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} $else$ diff --git a/vignettes/metropolisDemo.Rmd b/vignettes/metropolisDemo.Rmd index c08d20a..e6a2809 100644 --- a/vignettes/metropolisDemo.Rmd +++ b/vignettes/metropolisDemo.Rmd @@ -11,6 +11,7 @@ output: in_header: metropolis/header.tex bibliography: metropolis/demo.bib biblio-style: abbrvnat +beameroption: "show notes" toc: true vignette: > %\VignetteIndexEntry{binb Metropolis Demo} @@ -325,6 +326,39 @@ Some references \citep{knuth92,ConcreteMath,Simpson,Er01,greenwade93} \scriptsize `allowframebreaks` is not used or needed, also changed `\cite` to `\citep`, and defaulted `natbib` to option `[round]`. +## Notes + +Notes can be added either using latex syntax: + +``` +\note{ + \begin{itemize} + \item \emph{This} is a note. + \end{itemize} +} +``` + +\note{ + \begin{itemize} + \item \emph{This} is a note. + \end{itemize} +} + +or with pandoc (markdown) syntax: + +``` +
+ - This is *another* note. +
+``` + +
+ - This is *another* note. +
+ +The display of the notes is controlled using the YAML argument `beameroption`. +Here we have used `beameroption: "show notes"`. + # Conclusion ## Summary diff --git a/vignettes/metropolisDemo.pdf b/vignettes/metropolisDemo.pdf index 1a26ccb..017ca84 100644 Binary files a/vignettes/metropolisDemo.pdf and b/vignettes/metropolisDemo.pdf differ