summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty17
1 files changed, 16 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
index 17ac0b45f01..02abbad55a7 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty
@@ -57,6 +57,13 @@
\AddToHook{env/document/begin}[beamer]{\beamer@firstminutepatches}%
\AddToHook{env/document/begin}[beamer]{%
\@ifpackageloaded{paralist}{\RequirePackage{beamerpatchparalist}}{}%
+ \@ifpackageloaded{pdfpages}{%
+ % Patching pdfpages package to avoid the included pages from being covered by the background canvas
+ \AddToHook{cmd/includepdf/before}[beamer]{\begingroup\setbeamercolor{background canvas}{bg=}}%
+ \AddToHook{cmd/includepdf/after}[beamer]{\endgroup}%
+ \AddToHook{cmd/includepdfmerge/before}[beamer]{\begingroup\setbeamercolor{background canvas}{bg=}}%
+ \AddToHook{cmd/includepdfmerge/after}[beamer]{\endgroup}%
+ }{}%
}%
\AddToHook{begindocument/end}[beamer]%need to be later than spanish.ldf?
{%
@@ -70,7 +77,7 @@
\ifbeamer@ignorenonframe
\expandafter\mode\expandafter*%
\fi
- }
+ }%
}
{%
\let\beamer@origdocument\document
@@ -234,6 +241,14 @@
\providecommand\ext@figure{}
%
+% Fix for polyglossia
+% https://github.com/josephwright/beamer/issues/706
+%
+\IfFormatAtLeastTF{2020-10-01}{%
+ \DeclareHookRule{begindocument/end}{beamer}{after}{polyglossia}%
+}{}
+
+%
% Obsolete commands from old versions of beamer
%
\mode