diff options
author | Karl Berry <karl@freefriends.org> | 2021-04-27 15:47:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-04-27 15:47:14 +0000 |
commit | 0ba196ab95b7b5918076d731f0538adf2ab13d6d (patch) | |
tree | c6696303cf6d92209a2269ceb982f3738ef51875 /Master/texmf-dist/tex/latex/beamertheme-trigon/beamerouterthemetrigon.sty | |
parent | 40b33edf14d0a068f7e2b6e79214ccf0738d1692 (diff) |
beamertheme-trigon (26mar21)
git-svn-id: svn://tug.org/texlive/trunk@59004 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamertheme-trigon/beamerouterthemetrigon.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamertheme-trigon/beamerouterthemetrigon.sty | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerouterthemetrigon.sty b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerouterthemetrigon.sty new file mode 100644 index 00000000000..632340a5bd1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerouterthemetrigon.sty @@ -0,0 +1,91 @@ +%% +%% This is file `beamerouterthemetrigon.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerouterthemetrigon.dtx (with options: `package') +%% --------------------------------------------------------------------------- +%% Copyright (C) 2021 Thomas Lambert <trigon@thl.ovh> +%% Other contributors to this theme are listed here: +%% https://gitlab.com/thlamb/beamertheme-trigon/-/graphs/master +%% +%% The original template was heavily inspired by Metropolis from Matthias +%% Vogelgesang. +%% +%% License CC-BY-SA 4.0 +%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 +%% International License (https://creativecommons.org/licenses/by-sa/4.0/) +%% --------------------------------------------------------------------------- +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamerouterthemetrigon}[2021/03/25 v0.5.0 Trigon outer theme] +\RequirePackage{pgfopts} +\def\logsmall{} +\newcommand\smalllogo[1]{ + \def\logsmall{#1} +} +\pgfkeys{ + /trigon/outer/numbering/.cd, + .is choice, + none/.code=\setbeamertemplate{frame numbering}[none], + counter/.code=\setbeamertemplate{frame numbering}[counter], + fraction/.code=\setbeamertemplate{frame numbering}[fraction] +} +\newcommand{\trigon@outer@setdefaults}{ + \pgfkeys{/trigon/outer/.cd, + numbering=counter + } +} +\defbeamertemplate*{frametitle}{trigon} +{ + \vspace{-1pt} + \begin{beamercolorbox}[wd=\paperwidth,leftskip=0.05\paperwidth]{frametitle} + \vskip.4cm + \ifx\insertframesubtitle\@empty% + {\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle}% + \else% + {\usebeamerfont{frametitle}\usebeamercolor[fg]{frametitle}\insertframetitle}\\[-.25cm] + {\usebeamerfont{framesubtitle}\usebeamercolor[fg]{framesubtitle}\insertframesubtitle}% + \fi + \vskip.3cm + \end{beamercolorbox} +} +\defbeamertemplate{headline}{none}{} +\defbeamertemplate*{headline}{logo}{ +\ifx\logsmall\@empty\else + \hfill\includegraphics[width=20pt]{\logsmall}\hspace{20pt}\vspace{-40pt} +\fi +} +\setbeamertemplate{navigation symbols}{} + +\defbeamertemplate{frame footer}{none}{} +\defbeamertemplate{frame footer}{custom}[1]{ #1 } +\defbeamertemplate{frame numbering}{none}{} +\defbeamertemplate{frame numbering}{counter}{\insertframenumber} +\defbeamertemplate{frame numbering}{fraction}{ + \insertframenumber/\inserttotalframenumber +} + +\defbeamertemplate{footline}{plain}{% + \begin{beamercolorbox}[wd=\textwidth, sep=10pt]{page number in head/foot}% + \usebeamerfont{page number in head/foot}% + \usebeamercolor[fg]{page number in head/foot}% + \usebeamertemplate*{frame footer} + \hfill% + \usebeamertemplate*{frame numbering} + \end{beamercolorbox}% +} + +\setbeamertemplate{footline}[plain] +\AtBeginDocument{% + \apptocmd{\appendix}{% + \pgfkeys{% + /trigon/outer/.cd, + numbering=none} + }{}{} +} +\trigon@outer@setdefaults +\ProcessPgfPackageOptions{/trigon/outer} +\endinput +%% +%% End of file `beamerouterthemetrigon.sty'. |