|
|
|
@ -12,7 +12,7 @@
|
|
|
|
|
% \iffalse
|
|
|
|
|
%<*package>
|
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
|
\ProvidesPackage{beamerfontthememoloch}[2017/01/23 Moloch font theme]
|
|
|
|
|
\ProvidesPackage{beamerfontthememoloch}[2017/01/23 v0.1.0 Moloch font theme] % x-release-please-version
|
|
|
|
|
%</package>
|
|
|
|
|
% \fi
|
|
|
|
|
% \CheckSum{0}
|
|
|
|
@ -39,33 +39,23 @@
|
|
|
|
|
% \subsubsection{General font definitions}
|
|
|
|
|
%
|
|
|
|
|
% \begin{macrocode}
|
|
|
|
|
\setbeamerfont{title}{size=\Large,%
|
|
|
|
|
series=\bfseries}
|
|
|
|
|
\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{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{frametitle}{size=\large, series=\bfseries}
|
|
|
|
|
\setbeamerfont{caption}{size=\small}
|
|
|
|
|
\setbeamerfont{caption name}{series=\bfseries}
|
|
|
|
|
\setbeamerfont{description item}{series=\bfseries}
|
|
|
|
|
\setbeamerfont{page number in head/foot}{size=\scriptsize}
|
|
|
|
|
\setbeamerfont{bibliography entry author}{size=\normalsize,%
|
|
|
|
|
series=\normalfont}
|
|
|
|
|
\setbeamerfont{bibliography entry title}{size=\normalsize,%
|
|
|
|
|
series=\bfseries}
|
|
|
|
|
\setbeamerfont{bibliography entry location}{size=\normalsize,%
|
|
|
|
|
series=\normalfont}
|
|
|
|
|
\setbeamerfont{bibliography entry note}{size=\small,%
|
|
|
|
|
series=\normalfont}
|
|
|
|
|
\setbeamerfont{standout}{size=\Large,%
|
|
|
|
|
series=\bfseries}
|
|
|
|
|
\setbeamerfont{bibliography entry author}{size=\normalsize, series=\normalfont}
|
|
|
|
|
\setbeamerfont{bibliography entry title}{size=\normalsize, series=\bfseries}
|
|
|
|
|
\setbeamerfont{bibliography entry location}{size=\normalsize, series=\normalfont}
|
|
|
|
|
\setbeamerfont{bibliography entry note}{size=\small, series=\normalfont}
|
|
|
|
|
\setbeamerfont{standout}{size=\Large, series=\bfseries}
|
|
|
|
|
% \end{macrocode}
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
@ -245,61 +235,61 @@
|
|
|
|
|
%
|
|
|
|
|
% \begin{macrocode}
|
|
|
|
|
\patchcmd{\beamer@title}%
|
|
|
|
|
{\def\inserttitle{#2}}%
|
|
|
|
|
{\def\inserttitle{\moloch@titleformat{#2}}}%
|
|
|
|
|
{}%
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching title failed}\@ehc}
|
|
|
|
|
{\def\inserttitle{#2}}%
|
|
|
|
|
{\def\inserttitle{\moloch@titleformat{#2}}}%
|
|
|
|
|
{}%
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching title failed}\@ehc}
|
|
|
|
|
\patchcmd{\beamer@subtitle}%
|
|
|
|
|
{\def\insertsubtitle{#2}}%
|
|
|
|
|
{\def\insertsubtitle{\moloch@subtitleformat{#2}}}%
|
|
|
|
|
{}%
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching subtitle failed}\@ehc}
|
|
|
|
|
{\def\insertsubtitle{#2}}%
|
|
|
|
|
{\def\insertsubtitle{\moloch@subtitleformat{#2}}}%
|
|
|
|
|
{}%
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching subtitle failed}\@ehc}
|
|
|
|
|
\patchcmd{\sectionentry}
|
|
|
|
|
{\def\insertsectionhead{#2}}
|
|
|
|
|
{\def\insertsectionhead{\moloch@sectiontitleformat{#2}}}
|
|
|
|
|
{}
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc}
|
|
|
|
|
{\def\insertsectionhead{#2}}
|
|
|
|
|
{\def\insertsectionhead{\moloch@sectiontitleformat{#2}}}
|
|
|
|
|
{}
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc}
|
|
|
|
|
\@tempswafalse
|
|
|
|
|
\patchcmd{\beamer@section}
|
|
|
|
|
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
|
|
|
|
|
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
|
|
|
|
|
{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
\noexpand\moloch@sectiontitleformat{\unexpanded{#1}}}}}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
\patchcmd{\beamer@section}
|
|
|
|
|
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
\moloch@sectiontitleformat{#1}}}}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
\patchcmd{\beamer@section}
|
|
|
|
|
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
\noexpand\moloch@sectiontitleformat{#1}}}}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
\if@tempswa\else
|
|
|
|
|
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
|
|
|
|
|
\fi
|
|
|
|
|
\@tempswafalse
|
|
|
|
|
\patchcmd{\beamer@subsection}
|
|
|
|
|
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
|
|
|
|
|
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
|
|
|
|
|
{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
\noexpand\moloch@sectiontitleformat{\unexpanded{#1}}}}}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
\patchcmd{\beamer@subsection}
|
|
|
|
|
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
\moloch@sectiontitleformat{#1}}}}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
\patchcmd{\beamer@subsection}
|
|
|
|
|
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
|
|
|
|
|
{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
|
|
|
|
|
\noexpand\moloch@sectiontitleformat{#1}}}}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
{\@tempswatrue}
|
|
|
|
|
{}
|
|
|
|
|
\if@tempswa\else
|
|
|
|
|
\PackageError{beamerfontthememoloch}{Patching section title failed}\@ehc
|
|
|
|
|
\fi
|
|
|
|
@ -310,21 +300,21 @@
|
|
|
|
|
%
|
|
|
|
|
% \begin{macrocode}
|
|
|
|
|
\patchcmd{\beamer@@frametitle}
|
|
|
|
|
{{%
|
|
|
|
|
{{%
|
|
|
|
|
\gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
|
|
|
|
|
\usebeamertemplate*{frametitle continuation}\fi}}%
|
|
|
|
|
\gdef\beamer@frametitle{#2}%
|
|
|
|
|
\gdef\beamer@shortframetitle{#1}%
|
|
|
|
|
}}
|
|
|
|
|
{{%
|
|
|
|
|
{{%
|
|
|
|
|
\gdef\insertframetitle{{\moloch@frametitleformat{#2}\ifnum%
|
|
|
|
|
\beamer@autobreakcount>0\relax{}\space%
|
|
|
|
|
\usebeamertemplate*{frametitle continuation}\fi}}%
|
|
|
|
|
\gdef\beamer@frametitle{#2}%
|
|
|
|
|
\gdef\beamer@shortframetitle{#1}%
|
|
|
|
|
}}
|
|
|
|
|
{}
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching frame title failed}\@ehc}
|
|
|
|
|
{}
|
|
|
|
|
{\PackageError{beamerfontthememoloch}{Patching frame title failed}\@ehc}
|
|
|
|
|
% \end{macrocode}
|
|
|
|
|
%
|
|
|
|
|
%
|
|
|
|
|