Revert "chore: format code"

This reverts commit 7e50735d17.
This commit is contained in:
Johan Larsson 2024-01-12 22:18:48 +01:00
parent 253234e7b2
commit 3e2ccea4f4
1 changed files with 51 additions and 75 deletions

View File

@ -207,7 +207,7 @@
% \begin{macro}{\moloch@font@setdefaults} % \begin{macro}{\moloch@font@setdefaults}
% Sets default values for font theme options. % Sets default values for font theme options.
% \begin{macrocode} % \begin{macrocode}
\newcommand{\moloch@font@setdefaults}{% \newcommand{\moloch@font@setdefaults}{
\pgfkeys{/moloch/font/.cd, \pgfkeys{/moloch/font/.cd,
titleformat title=regular, titleformat title=regular,
titleformat subtitle=regular, titleformat subtitle=regular,
@ -234,86 +234,62 @@
% question}. % question}.
% %
% \begin{macrocode} % \begin{macrocode}
\patchcmd{\beamer@title}{% \patchcmd{\beamer@title}%
\def\inserttitle{#2} {\def\inserttitle{#2}}%
}{% {\def\inserttitle{\moloch@titleformat{#2}}}%
\def\inserttitle{\moloch@titleformat{#2}} {}%
}{}{% {\PackageError{beamerfontthememoloch}{Patching title failed}\@ehc}
\PackageError{beamerfontthememoloch}{Patching title failed}\@ehc \patchcmd{\beamer@subtitle}%
} {\def\insertsubtitle{#2}}%
\patchcmd{\beamer@subtitle}{% {\def\insertsubtitle{\moloch@subtitleformat{#2}}}%
\def\insertsubtitle{#2} {}%
}{% {\PackageError{beamerfontthememoloch}{Patching subtitle failed}\@ehc}
\def\insertsubtitle{\moloch@subtitleformat{#2}} \patchcmd{\sectionentry}
}{}{% {\def\insertsectionhead{#2}}
\PackageError{beamerfontthememoloch}{Patching subtitle failed}\@ehc {\def\insertsectionhead{\moloch@sectiontitleformat{#2}}}
} {}
\patchcmd{\sectionentry}{% {\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc}
\def\insertsectionhead{#2}}{%
\def\insertsectionhead{\moloch@sectiontitleformat{#2}}
}{}{%
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
}
\@tempswafalse \@tempswafalse
\patchcmd{\beamer@section}{% \patchcmd{\beamer@section}
\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}} {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
}{% {\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\edef\insertsectionhead{% \noexpand\moloch@sectiontitleformat{\unexpanded{#1}}}}}
\noexpand\hyperlink{% {\@tempswatrue}
Navigation\the\c@page {}
}{% \patchcmd{\beamer@section}
\noexpand\moloch@sectiontitleformat{\unexpanded{#1}} {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
}% {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
}% \moloch@sectiontitleformat{#1}}}}
}{% {\@tempswatrue}
\@tempswatrue {}
}{} \patchcmd{\beamer@section}
\patchcmd{\beamer@section}{% {\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}} {\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
}{% \noexpand\moloch@sectiontitleformat{#1}}}}
\def\insertsectionhead{% {\@tempswatrue}
\hyperlink{Navigation\the\c@page}{\moloch@sectiontitleformat{#1}} {}
}
}{%
\@tempswatrue
}{}
\patchcmd{\beamer@section}{%
\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}
}{%
\protected@edef\insertsectionhead{%
\noexpand\hyperlink{Navigation\the\c@page}{\noexpand\moloch@sectiontitleformat{#1}}}
}{%
\@tempswatrue
}{}
\if@tempswa\else \if@tempswa\else
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc \PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
\fi \fi
\@tempswafalse \@tempswafalse
\patchcmd{\beamer@subsection}{% \patchcmd{\beamer@subsection}
\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}} {\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
}{% {\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\edef\insertsubsectionhead{% \noexpand\moloch@sectiontitleformat{\unexpanded{#1}}}}}
\noexpand\hyperlink{Navigation\the\c@page}{\noexpand\moloch@sectiontitleformat{\unexpanded{#1}}} {\@tempswatrue}
} {}
}{% \patchcmd{\beamer@subsection}
\@tempswatrue} {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
\moloch@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@subsection}
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
\noexpand\moloch@sectiontitleformat{#1}}}}
{\@tempswatrue}
{} {}
\patchcmd{\beamer@subsection}{%
\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}
}{%
\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{\moloch@sectiontitleformat{#1}}}
}{%
\@tempswatrue
}{}
\patchcmd{\beamer@subsection}{%
\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}
}{%
\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\noexpand\moloch@sectiontitleformat{#1}}}
}{%
\@tempswatrue
}{}
\if@tempswa\else \if@tempswa\else
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc \PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
\fi \fi