mirror of https://github.com/matze/mtheme.git
Patch older and newer versions of beamer code
The fixes inef419391cb
andce790e640c
mean that a new patch route is needed. Patches cannot be nested (easily) so use two and a switch to track if an error is needed.
This commit is contained in:
parent
2a1fcb7ea9
commit
30d207d696
|
@ -367,18 +367,38 @@
|
||||||
{\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}}
|
{\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}}
|
||||||
{}
|
{}
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
|
{\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
|
||||||
|
\@tempswafalse
|
||||||
\patchcmd{\beamer@section}
|
\patchcmd{\beamer@section}
|
||||||
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
||||||
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
|
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
|
||||||
\metropolis@sectiontitleformat{#1}}}}
|
\metropolis@sectiontitleformat{#1}}}}
|
||||||
|
{\@tempswatrue}
|
||||||
{}
|
{}
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
|
\patchcmd{\beamer@section}
|
||||||
|
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
||||||
|
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
||||||
|
\noexpand\metropolis@sectiontitleformat{#1}}}}
|
||||||
|
{\@tempswatrue}
|
||||||
|
{}
|
||||||
|
\if@tempswa\else
|
||||||
|
\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
|
||||||
|
\fi
|
||||||
|
\@tempswafalse
|
||||||
\patchcmd{\beamer@subsection}
|
\patchcmd{\beamer@subsection}
|
||||||
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
||||||
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
|
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
|
||||||
\metropolis@sectiontitleformat{#1}}}}
|
\metropolis@sectiontitleformat{#1}}}}
|
||||||
|
{\@tempswatrue}
|
||||||
{}
|
{}
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
|
\patchcmd{\beamer@subsection}
|
||||||
|
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
||||||
|
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
||||||
|
\noexpand\metropolis@sectiontitleformat{#1}}}}
|
||||||
|
{\@tempswatrue}
|
||||||
|
{}
|
||||||
|
\if@tempswa\else
|
||||||
|
\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc
|
||||||
|
\fi
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
|
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
|
||||||
|
|
Loading…
Reference in New Issue