165 lines
4.3 KiB
TeX
165 lines
4.3 KiB
TeX
% \iffalse meta-comment -------------------------------------------------------
|
|
% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
% contributors can be found at
|
|
%
|
|
% https://github.com/matze/mtheme/graphs/contributors
|
|
%
|
|
% and the original template was based on the HSRM theme by Benjamin Weiss.
|
|
%
|
|
% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
|
% ------------------------------------------------------------------------- \fi
|
|
% \iffalse
|
|
%<*package>
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{beamerthememoloch}[2025-04-01 v1.0.1 Moloch theme] % x-release-please-version
|
|
%</package>
|
|
% \fi
|
|
% \CheckSum{0}
|
|
% \StopEventually{}
|
|
% \iffalse
|
|
%<*package>
|
|
% ------------------------------------------------------------------------- \fi
|
|
%
|
|
% \subsection{\themename Parent Theme}
|
|
%
|
|
% The primary job of this package is to load the component sub-packages of the
|
|
% \themename theme and route the theme options accordingly. It also
|
|
% provides some custom commands and environments for the user.
|
|
%
|
|
%
|
|
%
|
|
% \subsubsection{Package Dependencies}
|
|
%
|
|
% \begin{macrocode}
|
|
\RequirePackage{pgfopts}
|
|
% \end{macrocode}
|
|
%
|
|
%
|
|
%
|
|
% \subsubsection{Options}
|
|
%
|
|
% Most options are passed off to the component sub-packages.
|
|
%
|
|
% \begin{macrocode}
|
|
\pgfkeys{/moloch/.cd,
|
|
.search also={
|
|
/moloch/inner,
|
|
/moloch/outer,
|
|
/moloch/color,
|
|
/moloch/font,
|
|
}
|
|
}
|
|
% \end{macrocode}
|
|
%
|
|
% \begin{macro}{titleformat plain}
|
|
% Controls the formatting of the text on standout ``plain'' frames.
|
|
% \begin{macrocode}
|
|
\pgfkeys{
|
|
/moloch/titleformat plain/.cd,
|
|
.is choice,
|
|
regular/.code={%
|
|
\let\moloch@plaintitleformat\@empty%
|
|
\setbeamerfont{standout}{shape=\normalfont}%
|
|
},
|
|
smallcaps/.code={%
|
|
\let\moloch@plaintitleformat\@empty%
|
|
\setbeamerfont{standout}{shape=\scshape}%
|
|
},
|
|
allsmallcaps/.code={%
|
|
\let\moloch@plaintitleformat\MakeLowercase%
|
|
\setbeamerfont{standout}{shape=\scshape}%
|
|
},
|
|
allcaps/.code={%
|
|
\let\moloch@plaintitleformat\MakeUppercase%
|
|
\setbeamerfont{standout}{shape=\normalfont}%
|
|
},
|
|
}
|
|
% \end{macrocode}
|
|
% \end{macro}
|
|
%
|
|
% \begin{macro}{titleformat}
|
|
% Sets a standard format for titles, subtitles, section titles, frame
|
|
% titles, and the text on standout ``plain'' frames.
|
|
% \begin{macrocode}
|
|
\pgfkeys{
|
|
/moloch/titleformat/.code=\pgfkeysalso{
|
|
font/titleformat title=#1,
|
|
font/titleformat subtitle=#1,
|
|
font/titleformat section=#1,
|
|
font/titleformat frame=#1,
|
|
titleformat plain=#1,
|
|
}
|
|
}
|
|
% \end{macrocode}
|
|
% \end{macro}
|
|
%
|
|
% Set default values for options.
|
|
%
|
|
% \begin{macrocode}
|
|
\newcommand{\moloch@setdefaults}{
|
|
\pgfkeys{/moloch/.cd,
|
|
titleformat plain=regular,
|
|
}
|
|
}
|
|
% \end{macrocode}
|
|
%
|
|
% To avoid generating externalized figures of the progressbar we have to disable
|
|
% them with ``tikzexternalenable'' and ``tikzexternaldisable''. However, if the
|
|
% ``external'' library is not loaded we would get undefined control sequence
|
|
% problems, hence we define them as no-ops if they are not defined yet.
|
|
% We do the same for the ``mmzUnmemoizable'' command from the memoize package, in
|
|
% order to avoid memoization of the progress bars.
|
|
%
|
|
% \begin{macrocode}
|
|
\providecommand{\tikzexternalenable}{}
|
|
\providecommand{\tikzexternaldisable}{}
|
|
\providecommand{\mmzUnmemoizable}{}
|
|
% \end{macrocode}
|
|
%
|
|
% \subsubsection{Component Sub-Packages}
|
|
%
|
|
% Having processed the options, we can now load the component sub-packages of
|
|
% the theme.
|
|
%
|
|
% \begin{macrocode}
|
|
\useinnertheme{moloch}
|
|
\useoutertheme{moloch}
|
|
\usecolortheme{moloch}
|
|
\usefonttheme{moloch}
|
|
% \end{macrocode}
|
|
%
|
|
% \subsubsection{Custom Commands}
|
|
%
|
|
% The parent theme defines custom commands as their proper usage may depend
|
|
% on multiple sub-packages.
|
|
%
|
|
% \begin{macro}{\molochset}
|
|
% Allows the user to change options midway through a presentation.
|
|
% \begin{macrocode}
|
|
\newcommand{\molochset}[1]{\pgfkeys{/moloch/.cd,#1}}
|
|
% \end{macrocode}
|
|
% \end{macro}
|
|
%
|
|
%
|
|
% \begin{macro}{\mreducelistspacing}
|
|
% \begin{macrocode}
|
|
\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
|
|
% \end{macrocode}
|
|
% \end{macro}
|
|
%
|
|
%
|
|
%
|
|
% \subsubsection{Process Package Options}
|
|
%
|
|
% \begin{macrocode}
|
|
\moloch@setdefaults
|
|
\ProcessPgfOptions{/moloch}
|
|
% \end{macrocode}
|
|
%
|
|
% \iffalse
|
|
%</package>
|
|
% \fi
|
|
% \Finale
|
|
\endinput
|