From 5f82c4fd107436b6c8ed001f4edce1a57abb77a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Pozo?= Date: Mon, 6 Mar 2023 17:42:59 +0100 Subject: Fix background image in Beamer when there are figure environments (#8671) --- data/templates/default.latex | 3 +++ 1 file changed, 3 insertions(+) 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] -- cgit v1.2.3