summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx')
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx313
1 files changed, 154 insertions, 159 deletions
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx b/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx
index 74e5ee3965..790af1b4f9 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx
+++ b/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerfontthemetrigon.dtx
@@ -13,7 +13,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerfontthemetrigon}[2021/09/06 v0.6.0 Trigon font theme]
+\ProvidesPackage{beamerfontthemetrigon}[2021/11/10 v0.6.2 Trigon font theme]
%</package>
% \fi
% \CheckSum{0}
@@ -25,147 +25,144 @@
% \subsection{\themename font theme}
% A |beamer| font theme sets the style of the font used in the document.
%
-%
% \subsubsection{Package dependencies}
% \begin{macrocode}
\RequirePackage{pgfopts}
% \end{macrocode}
%
-%
-%
% \subsubsection{Title format options}
%
% \begin{macro}{titleformat title}
-% Controls the format of the title.
+% Controls the format of the title.
% \begin{macrocode}
\pgfkeys{
/trigon/font/titleformat title/.cd,
- .is choice,
- regular/.code={%
- \let\trigon@titleformat\@empty%
- \setbeamerfont{title}{shape=\normalfont}%
- },
- smallcaps/.code={%
- \let\trigon@titleformat\@empty%
- \setbeamerfont{title}{shape=\scshape}%
- },
- allsmallcaps/.code={%
- \let\trigon@titleformat\lowercase%
- \setbeamerfont{title}{shape=\scshape}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat title=allsmallcaps can lead to problems%
- }
- },
- allcaps/.code={%
- \let\trigon@titleformat\uppercase%
- \setbeamerfont{title}{shape=\normalfont}
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat title=allcaps can lead to problems%
- }
- },
+ .is choice,
+ regular/.code={%
+ \let\trigon@titleformat\@empty%
+ \setbeamerfont{title}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\trigon@titleformat\@empty%
+ \setbeamerfont{title}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\trigon@titleformat\lowercase%
+ \setbeamerfont{title}{shape=\scshape}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat title=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\trigon@titleformat\uppercase%
+ \setbeamerfont{title}{shape=\normalfont}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat title=allcaps can lead to problems%
+ }
+ },
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{titleformat subtitle}
-% Controls the format of the subtitle.
+% Controls the format of the subtitle.
% \begin{macrocode}
\pgfkeys{
/trigon/font/titleformat subtitle/.cd,
- .is choice,
- regular/.code={%
- \let\trigon@subtitleformat\@empty%
- \setbeamerfont{subtitle}{shape=\normalfont}%
- },
- smallcaps/.code={%
- \let\trigon@subtitleformat\@empty%
- \setbeamerfont{subtitle}{shape=\scshape}%
- },
- allsmallcaps/.code={%
- \let\trigon@subtitleformat\lowercase%
- \setbeamerfont{subtitle}{shape=\scshape}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat subtitle=allsmallcaps can lead to problems%
- }
- },
- allcaps/.code={%
- \let\trigon@subtitleformat\uppercase%
- \setbeamerfont{subtitle}{shape=\normalfont}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat subtitle=allcaps can lead to problems%
- }
- },
+ .is choice,
+ regular/.code={%
+ \let\trigon@subtitleformat\@empty%
+ \setbeamerfont{subtitle}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\trigon@subtitleformat\@empty%
+ \setbeamerfont{subtitle}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\trigon@subtitleformat\lowercase%
+ \setbeamerfont{subtitle}{shape=\scshape}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat subtitle=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\trigon@subtitleformat\uppercase%
+ \setbeamerfont{subtitle}{shape=\normalfont}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat subtitle=allcaps can lead to problems%
+ }
+ },
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{titleformat section}
-% Controls the format of the section title.
+% Controls the format of the section title.
% \begin{macrocode}
\pgfkeys{
/trigon/font/titleformat section/.cd,
- .is choice,
- regular/.code={%
- \let\trigon@sectiontitleformat\@empty%
- \setbeamerfont{section title}{shape=\normalfont}%
- },
- smallcaps/.code={%
- \let\trigon@sectiontitleformat\@empty%
- \setbeamerfont{section title}{shape=\scshape}%
- },
- allsmallcaps/.code={%
- \let\trigon@sectiontitleformat\MakeLowercase%
- \setbeamerfont{section title}{shape=\scshape}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat section=allsmallcaps can lead to problems%
- }
- },
- allcaps/.code={%
- \let\trigon@sectiontitleformat\MakeUppercase%
- \setbeamerfont{section title}{shape=\normalfont}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat section=allcaps can lead to problems%
- }
- },
+ .is choice,
+ regular/.code={%
+ \let\trigon@sectiontitleformat\@empty%
+ \setbeamerfont{section title}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\trigon@sectiontitleformat\@empty%
+ \setbeamerfont{section title}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\trigon@sectiontitleformat\MakeLowercase%
+ \setbeamerfont{section title}{shape=\scshape}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat section=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\trigon@sectiontitleformat\MakeUppercase%
+ \setbeamerfont{section title}{shape=\normalfont}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat section=allcaps can lead to problems%
+ }
+ },
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{titleformat frame}
-% Controls the format of the frame title.
+% Controls the format of the frame title.
% \begin{macrocode}
\pgfkeys{
/trigon/font/titleformat frame/.cd,
- .is choice,
- regular/.code={%
- \let\trigon@frametitleformat\@empty%
- \setbeamerfont{frametitle}{shape=\normalfont}%
- },
- smallcaps/.code={%
- \let\trigon@frametitleformat\@empty%
- \setbeamerfont{frametitle}{shape=\scshape}%
- },
- allsmallcaps/.code={%
- \let\trigon@frametitleformat\MakeLowercase%
- \setbeamerfont{frametitle}{shape=\scshape}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat frame=allsmallcaps can lead to problems%
- }
- },
- allcaps/.code={%
- \let\trigon@frametitleformat\MakeUppercase%
- \setbeamerfont{frametitle}{shape=\normalfont}
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat frame=allcaps can lead to problems%
- }
- },
+ .is choice,
+ regular/.code={%
+ \let\trigon@frametitleformat\@empty%
+ \setbeamerfont{frametitle}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\trigon@frametitleformat\@empty%
+ \setbeamerfont{frametitle}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\trigon@frametitleformat\MakeLowercase%
+ \setbeamerfont{frametitle}{shape=\scshape}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat frame=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\trigon@frametitleformat\MakeUppercase%
+ \setbeamerfont{frametitle}{shape=\normalfont}
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat frame=allcaps can lead to problems%
+ }
+ },
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{titleformat aliases}
-% Allows |titleformat title| et al. to be used in the |\usetheme|
-% declaration, where \LaTeX{} automatically removes all spaces.
+% Allows |titleformat title| et al. to be used in the |\usetheme|
+% declaration, where \LaTeX{} automatically removes all spaces.
% \begin{macrocode}
\pgfkeys{
/trigon/font/.cd,
@@ -178,7 +175,7 @@
% \end{macro}
%
% \begin{macro}{\trigon@font@setdefaults}
-% Sets default values for font theme options.
+% Sets default values for font theme options.
% \begin{macrocode}
\newcommand{\trigon@font@setdefaults}{
\pgfkeys{/trigon/font/.cd,
@@ -205,64 +202,63 @@
% This solution was suggested by Enrico Gregorio in an answer to
% \href{http://tex.stackexchange.com/questions/112526/}{this StackExchange
% question}.
-%
% \begin{macrocode}
\patchcmd{\beamer@title}%
- {\def\inserttitle{#2}}%
- {\def\inserttitle{\trigon@titleformat{#2}}}%
- {}%
- {\PackageError{beamerfontthemetrigon}{Patching title failed}\@ehc}
+{\def\inserttitle{#2}}%
+{\def\inserttitle{\trigon@titleformat{#2}}}%
+{}%
+{\PackageError{beamerfontthemetrigon}{Patching title failed}\@ehc}
\patchcmd{\beamer@subtitle}%
- {\def\insertsubtitle{#2}}%
- {\def\insertsubtitle{\trigon@subtitleformat{#2}}}%
- {}%
- {\PackageError{beamerfontthemetrigon}{Patching subtitle failed}\@ehc}
+{\def\insertsubtitle{#2}}%
+{\def\insertsubtitle{\trigon@subtitleformat{#2}}}%
+{}%
+{\PackageError{beamerfontthemetrigon}{Patching subtitle failed}\@ehc}
\patchcmd{\sectionentry}
- {\def\insertsectionhead{#2}}
- {\def\insertsectionhead{\trigon@sectiontitleformat{#2}}}
- {}
- {\PackageError{beamerfontthemetrigon}{Patching section title failed}\@ehc}
+{\def\insertsectionhead{#2}}
+{\def\insertsectionhead{\trigon@sectiontitleformat{#2}}}
+{}
+{\PackageError{beamerfontthemetrigon}{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}{%
- \noexpand\trigon@sectiontitleformat{\unexpanded{#1}}}}}
- {\@tempswatrue}
- {}
+{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
+{\edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
+\noexpand\trigon@sectiontitleformat{\unexpanded{#1}}}}}
+{\@tempswatrue}
+{}
\patchcmd{\beamer@section}
- {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
- {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
- \trigon@sectiontitleformat{#1}}}}
- {\@tempswatrue}
- {}
+{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
+{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
+\trigon@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\trigon@sectiontitleformat{#1}}}}
- {\@tempswatrue}
- {}
+{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
+{\protected@edef\insertsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
+\noexpand\trigon@sectiontitleformat{#1}}}}
+{\@tempswatrue}
+{}
\if@tempswa\else
\PackageError{beamerfontthemetrigon}{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}{%
- \noexpand\trigon@sectiontitleformat{\unexpanded{#1}}}}}
- {\@tempswatrue}
- {}
+{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{\unexpanded{#1}}}}
+{\edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
+\noexpand\trigon@sectiontitleformat{\unexpanded{#1}}}}}
+{\@tempswatrue}
+{}
\patchcmd{\beamer@subsection}
- {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
- {\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
- \trigon@sectiontitleformat{#1}}}}
- {\@tempswatrue}
- {}
+{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
+{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
+\trigon@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\trigon@sectiontitleformat{#1}}}}
- {\@tempswatrue}
- {}
+{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{#1}}}
+{\protected@edef\insertsubsectionhead{\noexpand\hyperlink{Navigation\the\c@page}{%
+\noexpand\trigon@sectiontitleformat{#1}}}}
+{\@tempswatrue}
+{}
\if@tempswa\else
\PackageError{beamerfontthemetrigon}{Patching section title failed}\@ehc
\fi
@@ -273,24 +269,23 @@
%
% \begin{macrocode}
\patchcmd{\beamer@@frametitle}
- {{%
- \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
- \usebeamertemplate*{frametitle continuation}\fi}}%
+{{%
+ \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
+ \usebeamertemplate*{frametitle continuation}\fi}}%
\gdef\beamer@frametitle{#2}%
\gdef\beamer@shortframetitle{#1}%
- }}
- {{%
- \gdef\insertframetitle{{\trigon@frametitleformat{#2}\ifnum%
- \beamer@autobreakcount>0\relax{}\space%
- \usebeamertemplate*{frametitle continuation}\fi}}%
+}}
+{{%
+ \gdef\insertframetitle{{\trigon@frametitleformat{#2}\ifnum%
+ \beamer@autobreakcount>0\relax{}\space%
+ \usebeamertemplate*{frametitle continuation}\fi}}%
\gdef\beamer@frametitle{#2}%
\gdef\beamer@shortframetitle{#1}%
- }}
- {}
- {\PackageError{beamerfontthemetrigon}{Patching frame title failed}\@ehc}
+}}
+{}
+{\PackageError{beamerfontthemetrigon}{Patching frame title failed}\@ehc}
% \end{macrocode}
%
-%
% \subsubsection{General font definitions}
%
% \begin{macrocode}
@@ -313,7 +308,7 @@
\setbeamerfont{description item}{series=\bfseries}
\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{series=\bfseries}
-% \end{macrocode}
+% \end{macrocode}
%
% \subsubsection{Process package options}
%