summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx')
-rw-r--r--macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx90
1 files changed, 44 insertions, 46 deletions
diff --git a/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx b/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx
index b12e1dc7e8..0f097e81ac 100644
--- a/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx
+++ b/macros/latex/contrib/beamer-contrib/themes/beamertheme-trigon/source/beamerthemetrigon.dtx
@@ -13,7 +13,7 @@
% \iffalse
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{beamerthemetrigon}[2021/09/06 v0.6.0 Trigon Beamer theme]
+\ProvidesPackage{beamerthemetrigon}[2021/11/10 v0.6.2 Trigon Beamer theme]
%</package>
% \fi
% \CheckSum{0}
@@ -29,20 +29,17 @@
% \themename theme and route the theme options accordingly. It also
% provides some custom commands and environments for the user.
%
-%
% \subsubsection{Package dependencies}
%
-% \begin{macrocode}
+% \begin{macrocode}
\RequirePackage{pgfopts}
\RequirePackage{tikz}
% \end{macrocode}
%
-%
%\subsubsection{Options}
%
% Most options are passed off to the component sub-packages.
-%
-% \begin{macrocode}
+% \begin{macrocode}
\pgfkeys{/trigon/.cd,
.search also={
/trigon/inner,
@@ -54,57 +51,56 @@
% \end{macrocode}
%
% \begin{macro}{titleformat plain}
-% Controls the formatting of the text on standout ``plain'' frames.
-% \begin{macrocode}
+% Controls the formatting of the text on standout ``plain'' frames.
+% \begin{macrocode}
\pgfkeys{
/trigon/titleformat plain/.cd,
- .is choice,
- regular/.code={%
- \let\trigon@plaintitleformat\@empty%
- \setbeamerfont{standout}{shape=\normalfont}%
- },
- smallcaps/.code={%
- \let\trigon@plaintitleformat\@empty%
- \setbeamerfont{standout}{shape=\scshape}%
- },
- allsmallcaps/.code={%
- \let\trigon@plaintitleformat\MakeLowercase%
- \setbeamerfont{standout}{shape=\scshape}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat plain=allsmallcaps can lead to problems%
- }
- },
- allcaps/.code={%
- \let\trigon@plaintitleformat\MakeUppercase%
- \setbeamerfont{standout}{shape=\normalfont}%
- \PackageWarning{beamerthemetrigon}{%
- Be aware that titleformat plain=allcaps can lead to problems%
- }
- },
+ .is choice,
+ regular/.code={%
+ \let\trigon@plaintitleformat\@empty%
+ \setbeamerfont{standout}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\trigon@plaintitleformat\@empty%
+ \setbeamerfont{standout}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\trigon@plaintitleformat\MakeLowercase%
+ \setbeamerfont{standout}{shape=\scshape}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat plain=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\trigon@plaintitleformat\MakeUppercase%
+ \setbeamerfont{standout}{shape=\normalfont}%
+ \PackageWarning{beamerthemetrigon}{%
+ Be aware that titleformat plain=allcaps can lead to problems%
+ }
+ },
}
% \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}
+% Sets a standard format for titles, subtitles, section titles, frame titles,
+% and the text on standout ``plain'' frames.
+% \begin{macrocode}
\pgfkeys{
/trigon/titleformat/.code=\pgfkeysalso{
- font/titleformat title=#1,
- font/titleformat subtitle=#1,
- font/titleformat section=#1,
- font/titleformat frame=#1,
- titleformat plain=#1,
- }
+ font/titleformat title=#1,
+ font/titleformat subtitle=#1,
+ font/titleformat section=#1,
+ font/titleformat frame=#1,
+ titleformat plain=#1,
+ }
}
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{usesourcefonts}
-% Select whereas the Source Sans Pro font is being loaded automatically or
-% not.
-% \begin{macrocode}
+% Select whereas the Source Sans Pro font is being loaded automatically or not.
+% \begin{macrocode}
\newif\if@trigon@usesourcefonts
\pgfkeys{/trigon/.cd,
usesourcefonts/.is if=@trigon@usesourcefonts,
@@ -113,12 +109,13 @@
% \end{macrocode}
% \end{macro}
%
+%
% \subsubsection{Component sub-packages}
%
% Having processed the options, we can now load the component sub-packages of
% the theme.
%
-% \begin{macrocode}
+% \begin{macrocode}
\useinnertheme{trigon}
\useoutertheme{trigon}
\usecolortheme{trigon}
@@ -132,15 +129,16 @@
% on multiple sub-packages.
%
% \begin{macro}{\metroset}
-% Allows the user to change options midway through a presentation.
+% Allows the user to change options midway through a presentation.
% \begin{macrocode}
\newcommand{\trigonset}[1]{\pgfkeys{/trigon/.cd,#1}}
% \end{macrocode}
% \end{macro}
%
+%
% \subsubsection{Process package options}
%
-% \begin{macrocode}
+% \begin{macrocode}
\ProcessOptionsBeamer
\ProcessPgfOptions{/trigon}
\if@trigon@usesourcefonts%