Add missing arguments for \PackageError

The command needs three arguments: \@ehc is the 'Press Enter to
continue" generic advice.
This commit is contained in:
Joseph Wright 2017-01-06 10:37:53 +00:00
parent caa3387782
commit 2a1fcb7ea9
1 changed files with 6 additions and 6 deletions

View File

@ -356,29 +356,29 @@
{\def\inserttitle{#2}}% {\def\inserttitle{#2}}%
{\def\inserttitle{\metropolis@titleformat{#2}}}% {\def\inserttitle{\metropolis@titleformat{#2}}}%
{}% {}%
{\PackageError{beamerfontthememetropolis}{Patching title failed}} {\PackageError{beamerfontthememetropolis}{Patching title failed}\@ehc}
\patchcmd{\beamer@subtitle}% \patchcmd{\beamer@subtitle}%
{\def\insertsubtitle{#2}}% {\def\insertsubtitle{#2}}%
{\def\insertsubtitle{\metropolis@subtitleformat{#2}}}% {\def\insertsubtitle{\metropolis@subtitleformat{#2}}}%
{}% {}%
{\PackageError{beamerfontthememetropolis}{Patching subtitle failed}} {\PackageError{beamerfontthememetropolis}{Patching subtitle failed}\@ehc}
\patchcmd{\sectionentry} \patchcmd{\sectionentry}
{\def\insertsectionhead{#2}} {\def\insertsectionhead{#2}}
{\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}} {\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}}
{} {}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}} {\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
\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}}}}
{} {}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}} {\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
\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}}}}
{} {}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}} {\PackageError{beamerfontthememetropolis}{Patching section title failed}\@ehc}
% \end{macrocode} % \end{macrocode}
% %
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in % Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
@ -400,7 +400,7 @@
\gdef\beamer@shortframetitle{#1}% \gdef\beamer@shortframetitle{#1}%
}} }}
{} {}
{\PackageError{beamerfontthememetropolis}{Patching frame title failed}} {\PackageError{beamerfontthememetropolis}{Patching frame title failed}\@ehc}
% \end{macrocode} % \end{macrocode}
% %
% %