diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty | 72 |
1 files changed, 29 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty index af57a24ecb8..d986b858fc2 100644 --- a/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty +++ b/Master/texmf-dist/tex/latex/beamer/beamerbasecompatibility.sty @@ -1,7 +1,7 @@ % Copyright 2003--2007 by Till Tantau % Copyright 2010 by Vedran Mileti\'c % Copyright 2011,2012,2015 by Vedran Mileti\'c, Joseph Wright -% Copyright 2016 Joseph Wright +% Copyright 2016,2017 by Joseph Wright % % This file may be distributed and/or modified % @@ -16,6 +16,7 @@ % % % Hyperlink fix for problem with empty test in pdfmark.def +% Note that this is redefined again later (for overlays) % % \let\beamer@orighyperlink\hyperlink @@ -51,34 +52,24 @@ % \let\beamer@origdocument\document \def\document{% - \beamer@firstminutepatches% - \endgroup% - + \beamer@firstminutepatches + \endgroup \AtBeginDocument{% fix spanish.ldf's meddling with < and > % % Fix spanish.ldf's meddling with < and > % - \@ifundefined{deactivatequoting}{}{\deactivatequoting} - + \@ifundefined{deactivatequoting}{}{\deactivatequoting}% % Fix meddline with enumerate items - \renewcommand\theenumi{\@arabic\c@enumi} - \renewcommand\theenumii{\@arabic\c@enumii} - \renewcommand\theenumiii{\@arabic\c@enumiii} - } - - \AtBeginDocument{% fix frenchb.ldf's meddling with itemize and : - \let\labelitemi\beamer@labelitemi - \let\labelitemii\beamer@labelitemii - \let\itemize\beamer@itemize - \let\list\beamer@list - \let\@trivlist\beamer@@trivlist% - \catcode`<=12\catcode`>=12} - - \begingroup\beamer@origdocument% - \beamer@lastminutepatches% - \ifbeamer@ignorenonframe% - \expandafter\mode\expandafter*% - \fi} + \renewcommand\theenumi{\@arabic\c@enumi}% + \renewcommand\theenumii{\@arabic\c@enumii}% + \renewcommand\theenumiii{\@arabic\c@enumiii}% + }% + \begingroup + \beamer@origdocument + \beamer@lastminutepatches + \ifbeamer@ignorenonframe + \expandafter\mode\expandafter*% + \fi} \mode <article> @@ -91,36 +82,32 @@ \g@addto@macro\beamer@lastminutepatches{% \ifbeamer@articleactive \else - \catcode`<=12\catcode`>=12 + \catcode`<=12 % + \catcode`>=12 % \fi } } - \AtBeginDocument{\def\es@itemize#1#2#3#4{}}% fix spanish.ldf's with \itemize - - - % % Fix for older versions of geometry % We used to test \ifGm@compatii, % but as of geometry v5.0, it is no longer provided. % \ifx\Gm@lmargin\@undefined -\def\Gm@lmargin{\Geom@lmargin}\def\Gm@rmargin{\Geom@rmargin} + \def\Gm@lmargin{\Geom@lmargin} + \def\Gm@rmargin{\Geom@rmargin} \else -\geometry{includeheadfoot} + \geometry{includeheadfoot} \fi - - % % Fix deluxetabular floats % -\AtBeginDocument{ +\AtBeginDocument{% \def\@plano@float@#1{\begin{table}} - \def\end@plano@float@{\end{table}} + \def\end@plano@float@{\end{table}}% } % @@ -136,8 +123,8 @@ % Heiko's fix for correct generation of section* and subsection* bookmarks % \g@addto@macro\beamer@lastminutepatches{% - \long\def\@LongEmpty{} - \newcommand*{\org@beamer@section}{} + \long\def\@LongEmpty{}% + \newcommand*{\org@beamer@section}{}% \let\org@beamer@section\beamer@section{}% \let\org@writebookmark\Hy@writebookmark{}% \long\def\beamer@section[#1]#2{% @@ -151,8 +138,8 @@ \def\Hy@writebookmark##1##2##3##4##5{}% \fi \org@beamer@section[{#1}]{#2}% - } - \newcommand*{\org@beamer@subsection}{} + }% + \newcommand*{\org@beamer@subsection}{}% \let\org@beamer@subsection\beamer@subsection{}% \long\def\beamer@subsection[#1]#2{% \let\Hy@writebookmark\org@writebookmark @@ -165,7 +152,7 @@ \def\Hy@writebookmark##1##2##3##4##5{}% \fi \org@beamer@subsection[{#1}]{#2}% - } + }% } % @@ -204,15 +191,14 @@ \providecommand\ext@table{} \providecommand\ext@figure{} - - - % % Obsolete commands from old versions of beamer % \mode <all> { + \let\beamer@ifempty=\ifblank + \let\beamer@verb@egroup=\verb@egroup \def\beamer@setb{\setbox0=\copy} |