aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMartín Pozo <[email protected]>2023-03-06 17:42:59 +0100
committerGitHub <[email protected]>2023-03-06 08:42:59 -0800
commit5f82c4fd107436b6c8ed001f4edce1a57abb77a6 (patch)
tree5caadb0acf88613d7089c8dc6a5e179c6ad7b154 /data
parent0fa0097a82065df99904fe304f088c968508f121 (diff)
Fix background image in Beamer when there are figure environments (#8671)
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index f5c8b0dbd..46b2a8b0e 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -33,6 +33,9 @@ $if(background-image)$
\usebackgroundtemplate{%
\includegraphics[width=\paperwidth]{$background-image$}%
}
+% In beamer background-image does not work well when other images are used, so this is the workaround
+\pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$}
+\usebackgroundtemplate{\pgfuseimage{background}}
$endif$
\usepackage{pgfpages}
\setbeamertemplate{caption}[numbered]