summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty
index af617d7ccc5..89c4eb9f020 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerbasetwoscreens.sty
@@ -20,6 +20,13 @@
\defbeameroption{previous slide on second screen}[right]%
{%
+ \ifx\@onlypreamble\@notprerr
+ \ltx@ifpackageloaded{pgfpages}{}{%
+ \ClassError{beamer}{`pgfpages' package necessary for this option}{}%
+ }%
+ \else%
+ \RequirePackage{pgfpages}%
+ \fi%
\pgfpagesuselayout{two screens with lagging second}[second #1]%
\beamer@twoscreenstexttrue
\nofiles
@@ -27,6 +34,13 @@
\defbeameroption{second mode text on second screen}[right]%
{%
+ \ifx\@onlypreamble\@notprerr
+ \ltx@ifpackageloaded{pgfpages}{}{%
+ \ClassError{beamer}{`pgfpages' package necessary for this option}{}%
+ }%
+ \else%
+ \RequirePackage{pgfpages}%
+ \fi%
\pgfpagesuselayout{two screens with optional second}[second #1]%
\beamer@twoscreenstexttrue
}