mirror of
https://github.com/eddelbuettel/binb
synced 2024-12-22 04:29:59 +01:00
Merge pull request #17 from jolars/master
Enable beamer options via yaml metadata
This commit is contained in:
commit
99621f827a
@ -1,10 +1,14 @@
|
|||||||
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
||||||
\PassOptionsToPackage{hyphens}{url}
|
\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$}
|
\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}[numbered]
|
||||||
\setbeamertemplate{caption label separator}{: }
|
\setbeamertemplate{caption label separator}{: }
|
||||||
\setbeamercolor{caption name}{fg=normal text.fg}
|
\setbeamercolor{caption name}{fg=normal text.fg}
|
||||||
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
||||||
|
$for(beameroption)$
|
||||||
|
\setbeameroption{$beameroption$}
|
||||||
|
$endfor$
|
||||||
$if(fontfamily)$
|
$if(fontfamily)$
|
||||||
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
||||||
$else$
|
$else$
|
||||||
@ -273,7 +277,7 @@ $endfor$
|
|||||||
|
|
||||||
\AtBeginSubsection[]{}
|
\AtBeginSubsection[]{}
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
|
|
||||||
$if(title)$
|
$if(title)$
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
||||||
\PassOptionsToPackage{hyphens}{url}
|
\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$}
|
\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}[numbered]
|
||||||
\setbeamertemplate{caption label separator}{: }
|
\setbeamertemplate{caption label separator}{: }
|
||||||
\setbeamercolor{caption name}{fg=normal text.fg}
|
\setbeamercolor{caption name}{fg=normal text.fg}
|
||||||
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
||||||
|
$for(beameroption)$
|
||||||
|
\setbeameroption{$beameroption$}
|
||||||
|
$endfor$
|
||||||
$if(fontfamily)$
|
$if(fontfamily)$
|
||||||
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
||||||
$else$
|
$else$
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
||||||
\PassOptionsToPackage{hyphens}{url}
|
\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$}
|
\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}[numbered]
|
||||||
\setbeamertemplate{caption label separator}{: }
|
\setbeamertemplate{caption label separator}{: }
|
||||||
\setbeamercolor{caption name}{fg=normal text.fg}
|
\setbeamercolor{caption name}{fg=normal text.fg}
|
||||||
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
||||||
|
$for(beameroption)$
|
||||||
|
\setbeameroption{$beameroption$}
|
||||||
|
$endfor$
|
||||||
$if(fontfamily)$
|
$if(fontfamily)$
|
||||||
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
||||||
$else$
|
$else$
|
||||||
|
@ -11,6 +11,7 @@ output:
|
|||||||
in_header: metropolis/header.tex
|
in_header: metropolis/header.tex
|
||||||
bibliography: metropolis/demo.bib
|
bibliography: metropolis/demo.bib
|
||||||
biblio-style: abbrvnat
|
biblio-style: abbrvnat
|
||||||
|
beameroption: "show notes"
|
||||||
toc: true
|
toc: true
|
||||||
vignette: >
|
vignette: >
|
||||||
%\VignetteIndexEntry{binb Metropolis Demo}
|
%\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
|
\scriptsize `allowframebreaks` is not used or needed, also changed `\cite` to
|
||||||
`\citep`, and defaulted `natbib` to option `[round]`.
|
`\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:
|
||||||
|
|
||||||
|
```
|
||||||
|
<div class = "notes">
|
||||||
|
- This is *another* note.
|
||||||
|
</div>
|
||||||
|
```
|
||||||
|
|
||||||
|
<div class = "notes">
|
||||||
|
- This is *another* note.
|
||||||
|
</div>
|
||||||
|
|
||||||
|
The display of the notes is controlled using the YAML argument `beameroption`.
|
||||||
|
Here we have used `beameroption: "show notes"`.
|
||||||
|
|
||||||
# Conclusion
|
# Conclusion
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user