Debian Codegraph @

texmf-dist/source/latex/moloch/beamerthememoloch.dtx

raw
1 % \iffalse meta-comment -------------------------------------------------------
2 % Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
3 % contributors can be found at
4 %
5 % https://github.com/matze/mtheme/graphs/contributors
6 %
7 % and the original template was based on the HSRM theme by Benjamin Weiss.
8 %
9 % This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
10 % International License (https://creativecommons.org/licenses/by-sa/4.0/).
11 % ------------------------------------------------------------------------- \fi
12 % \iffalse
13 %<*package>
14 \NeedsTeXFormat{LaTeX2e}
15 \ProvidesPackage{beamerthememoloch}[2025-12-18 v2.1.0 Moloch theme]
16 %</package>
17 % \fi
18 % \CheckSum{0}
19 % \StopEventually{}
20 % \iffalse
21 %<*package>
22 % ------------------------------------------------------------------------- \fi
23 %
24 % \subsection{Moloch Parent Theme}
25 %
26 % The primary job of this package is to load the component sub-packages of the
27 % Moloch theme and route the theme options accordingly. It also
28 % provides some custom commands and environments for the user.
29 %
30 %
31 %
32 % \subsection{Package Dependencies}
33 %
34 % \begin{macrocode}
35 \RequirePackage{pgfopts}
36 % \end{macrocode}
37 %
38 %
39 %
40 % \subsection{Options}
41 %
42 % Most options are passed off to the component sub-packages.
43 %
44 % \begin{macrocode}
45 \pgfkeys{/moloch/.cd,
46 .search also={
47 /moloch/inner,
48 /moloch/outer,
49 /moloch/color,
50 /moloch/font,
51 }
52 }
53 % \end{macrocode}
54 %
55 % Route color theme options to the new color system.
56 %
57 % \begin{macrocode}
58 \pgfkeys{/moloch/.cd,
59 colortheme/.code=\pgfkeysalso{/moloch/colors/theme=#1},
60 colorthemevariant/.code=\pgfkeysalso{/moloch/colors/variant=#1},
61 colortheme variant/.code=\pgfkeysalso{/moloch/colors/variant=#1},
62 }
63 % \end{macrocode}
64 %
65 % \begin{macro}{titleformat plain}
66 % Controls the formatting of the text on standout ``plain'' frames.
67 % \begin{macrocode}
68 \pgfkeys{
69 /moloch/titleformat plain/.cd,
70 .is choice,
71 regular/.code={%
72 \let\moloch@plaintitleformat\@empty%
73 \setbeamerfont{standout}{shape=\normalfont}%
74 },
75 smallcaps/.code={%
76 \let\moloch@plaintitleformat\@empty%
77 \setbeamerfont{standout}{shape=\scshape}%
78 },
79 allsmallcaps/.code={%
80 \let\moloch@plaintitleformat\MakeLowercase%
81 \setbeamerfont{standout}{shape=\scshape}%
82 },
83 allcaps/.code={%
84 \let\moloch@plaintitleformat\MakeUppercase%
85 \setbeamerfont{standout}{shape=\normalfont}%
86 },
87 }
88 % \end{macrocode}
89 % \end{macro}
90 %
91 % \begin{macro}{titleformat}
92 % Sets a standard format for titles, subtitles, section titles, frame
93 % titles, and the text on standout ``plain'' frames.
94 % \begin{macrocode}
95 \pgfkeys{
96 /moloch/titleformat/.code=\pgfkeysalso{
97 font/titleformat title=#1,
98 font/titleformat subtitle=#1,
99 font/titleformat section=#1,
100 font/titleformat frame=#1,
101 titleformat plain=#1,
102 }
103 }
104 % \end{macrocode}
105 % \end{macro}
106 %
107 % Set default values for options.
108 %
109 % \begin{macrocode}
110 \newcommand{\moloch@setdefaults}{
111 \pgfkeys{/moloch/.cd,
112 titleformat plain=regular,
113 }
114 }
115 % \end{macrocode}
116 %
117 % \subsection{Component Sub-Packages}
118 %
119 % Having processed the options, we can now load the component sub-packages of
120 % the theme.
121 %
122 % \begin{macrocode}
123 \useinnertheme{moloch}
124 \useoutertheme{moloch}
125 \usecolortheme{moloch}
126 \usefonttheme{moloch}
127 % \end{macrocode}
128 %
129 % \subsection{Custom Commands}
130 %
131 % The parent theme defines custom commands as their proper usage may depend
132 % on multiple sub-packages.
133 %
134 % \begin{macro}{\molochset}
135 % Allows the user to change options midway through a presentation.
136 % \begin{macrocode}
137 \newcommand{\molochset}[1]{\pgfkeys{/moloch/.cd,#1}}
138 % \end{macrocode}
139 % \end{macro}
140 %
141 % \textbf{DEPRECATED: } The following command is deprecated and will be
142 % removed in a future version.
143 %
144 % \begin{macro}{\mreducelistspacing}
145 % \begin{macrocode}
146 \newcommand{\mreducelistspacing}{%
147 \PackageWarning{beamerthememoloch}{%
148 \string\mreducelistspacing\space is deprecated and will be removed in a future version}%
149 \vspace{-\topsep}%
150 }
151 % \end{macrocode}
152 % \end{macro}
153 %
154 %
155 %
156 % \subsection{Process Package Options}
157 %
158 % \begin{macrocode}
159 \moloch@setdefaults
160 \ProcessPgfOptions{/moloch}
161 % \end{macrocode}
162 %
163 % \iffalse
164 %</package>
165 % \fi
166 % \Finale
167 \endinput