%% %% This is file `beamerfontthememoloch.sty', %% generated with the docstrip utility. %% %% The original source files were: %% %% beamerfontthememoloch.dtx (with options: `package') %% %% IMPORTANT NOTICE: %% %% For the copyright see the source file. %% %% Any modified versions of this file must be renamed %% with new filenames distinct from beamerfontthememoloch.sty. %% %% For distribution of the original source see the terms %% for copying and modification in the file beamerfontthememoloch.dtx. %% %% This generated file may be distributed as long as the %% original source files, as listed above, are part of the %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% --------------------------------------------------------------------------- %% Copyright 2024 Johan Larsson and contributors \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{beamerfontthememoloch}[2024-07-09 v0.4.0 Moloch font theme] % x-release-please-version \RequirePackage{etoolbox} \RequirePackage{pgfopts} \setbeamerfont{title}{size=\Large, series=\bfseries} \setbeamerfont{author}{size=\small} \setbeamerfont{date}{size=\small} \setbeamerfont{section title}{size=\Large, series=\bfseries} \setbeamerfont{block title}{size=\normalsize, series=\bfseries} \setbeamerfont{block title alerted}{size=\normalsize, series=\bfseries} \setbeamerfont*{subtitle}{size=\large} \setbeamerfont{frametitle}{size=\large, series=\bfseries} \setbeamerfont{framesubtitle}{size=\small} \setbeamerfont{caption}{size=\small} \setbeamerfont{caption name}{series=\bfseries} \setbeamerfont{description item}{series=\bfseries} \setbeamerfont{standout}{size=\Large, series=\bfseries} \pgfkeys{ /moloch/font/titleformat title/.cd, .is choice, regular/.code={% \let\moloch@titleformat\@empty% \setbeamerfont{title}{shape=\normalfont}% }, smallcaps/.code={% \let\moloch@titleformat\@empty% \setbeamerfont{title}{shape=\scshape}% }, allsmallcaps/.code={% \let\moloch@titleformat\lowercase% \setbeamerfont{title}{shape=\scshape}% \PackageNote{beamerthememoloch}{% Be aware that titleformat title=allsmallcaps can lead to problems% } }, allcaps/.code={% \let\moloch@titleformat\uppercase% \setbeamerfont{title}{shape=\normalfont} \PackageNote{beamerthememoloch}{% Be aware that titleformat title=allcaps can lead to problems% } }, } \pgfkeys{ /moloch/font/titleformat subtitle/.cd, .is choice, regular/.code={% \let\moloch@subtitleformat\@empty% \setbeamerfont{subtitle}{shape=\normalfont}% }, smallcaps/.code={% \let\moloch@subtitleformat\@empty% \setbeamerfont{subtitle}{shape=\scshape}% }, allsmallcaps/.code={% \let\moloch@subtitleformat\MakeLowercase% \setbeamerfont{subtitle}{shape=\scshape}% \PackageNote{beamerthememoloch}{% Be aware that titleformat subtitle=allsmallcaps can lead to problems% } }, allcaps/.code={% \let\moloch@subtitleformat\MakeUppercase% \setbeamerfont{subtitle}{shape=\normalfont}% \PackageNote{beamerthememoloch}{% Be aware that titleformat subtitle=allcaps can lead to problems% } }, } \pgfkeys{ /moloch/font/titleformat section/.cd, .is choice, regular/.code={% \let\moloch@sectiontitleformat\@empty% \setbeamerfont{section title}{shape=\normalfont}% }, smallcaps/.code={% \let\moloch@sectiontitleformat\@empty% \setbeamerfont{section title}{shape=\scshape}% }, allsmallcaps/.code={% \let\moloch@sectiontitleformat\MakeLowercase% \setbeamerfont{section title}{shape=\scshape}% \PackageNote{beamerthememoloch}{% Be aware that titleformat section=allsmallcaps can lead to problems% } }, allcaps/.code={% \let\moloch@sectiontitleformat\MakeUppercase% \setbeamerfont{section title}{shape=\normalfont}% \PackageNote{beamerthememoloch}{% Be aware that titleformat section=allcaps can lead to problems% } }, } \pgfkeys{ /moloch/font/titleformat frame/.cd, .is choice, regular/.code={% \let\moloch@frametitleformat\@empty% \setbeamerfont{frametitle}{shape=\normalfont}% }, smallcaps/.code={% \let\moloch@frametitleformat\@empty% \setbeamerfont{frametitle}{shape=\scshape}% }, allsmallcaps/.code={% \let\moloch@frametitleformat\MakeLowercase% \setbeamerfont{frametitle}{shape=\scshape}% \PackageNote{beamerthememoloch}{% Be aware that titleformat frame=allsmallcaps can lead to problems% } }, allcaps/.code={% \let\moloch@frametitleformat\MakeUppercase% \setbeamerfont{frametitle}{shape=\normalfont} \PackageNote{beamerthememoloch}{% Be aware that titleformat frame=allcaps can lead to problems% } }, } \pgfkeys{ /moloch/font/.cd, titleformattitle/.code=\pgfkeysalso{titleformat title=#1}, titleformatsubtitle/.code=\pgfkeysalso{titleformat subtitle=#1}, titleformatsection/.code=\pgfkeysalso{titleformat section=#1}, titleformatframe/.code=\pgfkeysalso{titleformat frame=#1}, } \newcommand{\moloch@font@setdefaults}{ \pgfkeys{/moloch/font/.cd, titleformat title=regular, titleformat subtitle=regular, titleformat section=regular, titleformat frame=regular, } } \def\moloch@titleformat#1{#1} \def\moloch@subtitleformat#1{#1} \def\moloch@sectiontitleformat#1{#1} \def\moloch@frametitleformat#1{#1} \moloch@font@setdefaults \ProcessPgfPackageOptions{/moloch/font} \endinput %% %% End of file `beamerfontthememoloch.sty'.