From 00e3c5c8c1af3cb288ea9b6a4129a6ac029df3cb Mon Sep 17 00:00:00 2001 From: John Muccigrosso <Jmuccigr@users.noreply.github.com> Date: Thu, 26 Apr 2018 14:33:20 -0400 Subject: [PATCH] Add background-image variable to default.latex (#4601) New variable with same name as comparable variable in (proposed) reveal.js template, so that background images can indicated for both presentation formats with one variable. --- data/templates/default.latex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/templates/default.latex b/data/templates/default.latex index 7f2d72340..31093374f 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -7,6 +7,11 @@ $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)$ +$if(background-image)$ +\usebackgroundtemplate{% +\includegraphics[width=\paperwidth]{$background-image$}% +} +$endif$ \usepackage{pgfpages} \setbeamertemplate{caption}[numbered] \setbeamertemplate{caption label separator}{: }