From 7f97b04862ffbe2bb9efaa648eee284f7949d20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20BERSAC?= <bersace03@gmail.com> Date: Fri, 30 Mar 2018 18:20:06 +0200 Subject: [PATCH] Add -V beameroption variable (#4359) * LaTeX template: Use `pgfpages` package; this is needed for notes on second screen in beamer * LaTeX template: Add `beameroption` variable in template --- MANUAL.txt | 3 +++ data/templates/default.latex | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/MANUAL.txt b/MANUAL.txt index 6bf20f1bc..127ab83e0 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1468,6 +1468,9 @@ LaTeX variables are used when [creating a PDF]. : option for document class, e.g. `oneside`; may be repeated for multiple options +`beameroption` +: In beamer, add extra beamer option with `\setbeameroption{}` + `geometry` : option for [`geometry`] package, e.g. `margin=1in`; may be repeated for multiple options diff --git a/data/templates/default.latex b/data/templates/default.latex index e989f27d9..7f2d72340 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -7,10 +7,14 @@ $endif$$if(dir)$$if(latex-dir-rtl)$ $endif$$endif$% \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} $if(beamer)$ +\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$ $endif$ $if(beamerarticle)$ \usepackage{beamerarticle} % needs to be loaded first