aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Muccigrosso <Jmuccigr@users.noreply.github.com>2018-04-26 14:33:20 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2018-04-26 11:33:20 -0700
commit00e3c5c8c1af3cb288ea9b6a4129a6ac029df3cb (patch)
tree67f4a4f6546379dfe429c075343e365773556336
parent91877692f399d46af0cfff151ce9ffde81af149d (diff)
downloadpandoc-00e3c5c8c1af3cb288ea9b6a4129a6ac029df3cb.tar.gz
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.
-rw-r--r--data/templates/default.latex5
1 files changed, 5 insertions, 0 deletions
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}{: }