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 | |
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')
5 files changed, 900 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/beamertheme-trigon/beamercolorthemetrigon.sty b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamercolorthemetrigon.sty new file mode 100644 index 00000000000..e5730d3d9d8 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamercolorthemetrigon.sty @@ -0,0 +1,119 @@ +%% +%% This is file `beamercolorthemetrigon.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamercolorthemetrigon.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{beamercolorthemetrigon}[2021/03/25 v0.5.0 Trigon color theme] +\RequirePackage{pgfopts} +\def\headcol{black} +\pgfkeys{ + /trigon/color/headingcolor/.cd, + .is choice, + black/.code=\def\headcol{black}, + theme/.code=\def\headcol{tPrim} +} +\def\txtcol{black} +\pgfkeys{ + /trigon/color/textcolor/.cd, + .is choice, + black/.code=\def\txtcol{black}, + theme/.code=\def\txtcol{tPrim!50!black} +} +\pgfkeys{ + /trigon/color/block/.cd, + .is choice, + transparent/.code=\trigon@block@transparent, + fill/.code=\trigon@block@fill +} +\newcommand{\trigon@color@setdefaults}{ + \pgfkeys{/trigon/color/.cd, + block=fill, + headingcolor=black, + textcolor=black + } +} +\definecolor{tPrim}{HTML}{00707F} % Green-Blue +\definecolor{tSec}{HTML}{5FA4B0} % Green-Blue light +\definecolor{tAccent}{HTML}{F07F3C} % Orange +\definecolor{tGrey}{HTML}{E6E6E1} % Grey-Beige +\setbeamercolor{background canvas}{bg=white} +\setbeamercolor{normal text}{fg=\txtcol, bg= } +\setbeamercolor{alerted text}{fg=tAccent} +\setbeamercolor{example text}{fg=tSec} + +\setbeamercolor{title}{fg=\headcol, bg= , parent=normal text} +\setbeamercolor{titlelike}{use=title, parent=title} +\setbeamercolor{author}{use=normal text, bg= , parent=normal text} +\setbeamercolor{date}{use=normal text, bg= , parent=normal text} +\setbeamercolor{institute}{use=normal text, parent=normal text} +\setbeamercolor{structure}{use=normal text, fg=normal text.fg} + +\setbeamercolor{palette primary}{use=titlelike, parent=titlelike} +\setbeamercolor{frametitle}{use=titlelike, parent=titlelike} +\newcommand{\trigon@block@transparent}{ + \setbeamercolor{block title}{% + use=normal text, + fg=normal text.fg, + bg=normal text.bg!96!fg + } + \setbeamercolor{block body}{ + use={block title, normal text}, + bg=block title.bg!35!normal text.bg + } +} +\newcommand{\trigon@block@fill}{ + \setbeamercolor{block title}{% + use=normal text, + fg=normal text.fg, + bg=normal text.bg!80!fg + } + \setbeamercolor{block body}{ + use={block title, normal text}, + bg=block title.bg!50!normal text.bg + } +} + +\setbeamercolor{block title alerted}{% + use={block title, alerted text}, + bg=block title.bg, + fg=alerted text.fg +} +\setbeamercolor{block title example}{% + use={block title, example text}, + bg=block title.bg, + fg=example text.fg +} +\setbeamercolor{block body alerted}{use=block body, parent=block body} +\setbeamercolor{block body example}{use=block body, parent=block body} +\setbeamercolor{footnote}{fg=normal text.fg!90} +\setbeamercolor{footnote mark}{fg=.} +\setbeamercolor{footline}{fg=normal text.fg!50, parent=normal text} +\setbeamercolor{caption}{fg=black!60, parent=normal text} + +\setbeamercolor{itemize item}{fg=tPrim, parent=normal text} +\setbeamercolor{itemize subitem}{use=itemize item, parent=itemize item} +\setbeamercolor{itemize subsubitem}{use=itemize item, parent=itemize item} +\setbeamercolor{enumerate item}{fg=tPrim, parent=normal text} +\setbeamercolor{enumerate subitem}{use=enumerate item, parent=enumerate item} +\setbeamercolor{enumerate subsubitem}{use=enumerate item, parent=enumerate item} +\setbeamercolor{description item}{fg=tPrim, parent=normal text} +\trigon@color@setdefaults +\ProcessPgfPackageOptions{/trigon/color} +\endinput +%% +%% End of file `beamercolorthemetrigon.sty'. diff --git a/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerfontthemetrigon.sty b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerfontthemetrigon.sty new file mode 100644 index 00000000000..c9122377c30 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerfontthemetrigon.sty @@ -0,0 +1,244 @@ +%% +%% This is file `beamerfontthemetrigon.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerfontthemetrigon.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{beamerfontthemetrigon}[2021/03/25 v0.5.0 Trigon font theme] +\RequirePackage{pgfopts} +\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% + } + }, +} +\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% + } + }, +} +\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% + } + }, +} +\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% + } + }, +} +\pgfkeys{ + /trigon/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{\trigon@font@setdefaults}{ + \pgfkeys{/trigon/font/.cd, + titleformat title=regular, + titleformat subtitle=regular, + titleformat section=regular, + titleformat frame=regular, + } +} +\def\trigon@titleformat#1{#1} +\def\trigon@subtitleformat#1{#1} +\def\trigon@sectiontitleformat#1{#1} +\def\trigon@frametitleformat#1{#1} +\patchcmd{\beamer@title}% + {\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} +\patchcmd{\sectionentry} + {\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} + {} +\patchcmd{\beamer@section} + {\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} + {} +\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} + {} +\patchcmd{\beamer@subsection} + {\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} + {} +\if@tempswa\else + \PackageError{beamerfontthemetrigon}{Patching section title failed}\@ehc +\fi +\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{{\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} +\setbeamerfont{author} {size=\normalsize} +\setbeamerfont{title} {size=\LARGE,series=\bfseries} +\setbeamerfont{section title}{size=\LARGE,series=\mdseries} +\setbeamerfont{date} {size=\small} +\setbeamerfont*{subtitle} {size=\Large} +\setbeamerfont{frametitle} {size=\LARGE} +\setbeamerfont{framesubtitle}{size=\large} + +\setbeamerfont{alerted text} {size=\normalsize,series=\bfseries} +\setbeamerfont{block title}{size=\normalsize,series=\bfseries} +\setbeamerfont{block title alerted}{size=\normalsize,series=\bfseries} + +\setbeamerfont{section in toc}{size=\Large} +\setbeamerfont{subsection in toc}{size=\large} +\setbeamerfont{page number in head/foot}{size=\scriptsize} + +\setbeamerfont{description item}{series=\bfseries} +\setbeamerfont{caption}{size=\small} +\setbeamerfont{caption name}{series=\bfseries} +\trigon@font@setdefaults +\ProcessPgfPackageOptions{/trigon/font} +\endinput +%% +%% End of file `beamerfontthemetrigon.sty'. diff --git a/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerinnerthemetrigon.sty b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerinnerthemetrigon.sty new file mode 100644 index 00000000000..035f79bbe75 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerinnerthemetrigon.sty @@ -0,0 +1,362 @@ +%% +%% This is file `beamerinnerthemetrigon.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerinnerthemetrigon.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{beamerinnerthemetrigon}[2021/03/25 v0.5.0 Trigon inner theme] +\RequirePackage{pgfopts} +\RequirePackage{tikz} +\usetikzlibrary{calc,3d} +\def\logbig{} +\newcommand\biglogo[1]{ +\def\logbig{#1} +} +\pgfkeys{ +/trigon/inner/sectionpage/.cd, +.is choice, +none/.code=\trigon@disablesectionpage, +simple/.code=\trigon@enablesectionpage +} +\def\slidestyle{} +\pgfkeys{ +/trigon/inner/slidestyle/.cd, +.is choice, +blank/.code=\def\slidestyle{blank}, +style1/.code=\def\slidestyle{smallcornertriangle}, +cyber/.code=\def\slidestyle{cyberbottom} +} +\def\titlestyle{} +\pgfkeys{ +/trigon/inner/titlestyle/.cd, +.is choice, +plain/.code=\def\titlestyle{bottomtrianglescolor}, +style1/.code=\def\titlestyle{titlesmallimage}, +style2/.code=\def\titlestyle{titlebigimage} +} +\def\sectionstyle{} +\pgfkeys{ +/trigon/inner/sectionstyle/.cd, +.is choice, +plain/.code=\def\sectionstyle{bottomtrianglescolor}, +style1/.code=\def\sectionstyle{bigtriangles}, +style2/.code=\def\sectionstyle{lefttriangles}, +style3/.code=\def\sectionstyle{bottomtrianglesbw} +} +\newcommand{\trigon@inner@setdefaults}{ +\pgfkeys{/trigon/inner/.cd, +sectionpage=simple, +slidestyle=blank, +titlestyle=style2, +sectionstyle=plain +} +} +\newcommand{\leftTriangle}[2]{ +(#1,#2) +-- (0,{#2 + tan(30)*#1} ) +-- (0,{#2 - tan(30)*#1} ) +-- cycle; +} +\newcommand{\rightTriangle}[2]{ +(#1,#2) +-- (\the\paperwidth,{#2 + tan(30)*(\the\paperwidth-#1)} ) +-- (\the\paperwidth,{#2 - tan(30)*(\the\paperwidth-#1)} ) +-- cycle; +} +\newcommand{\topTriangle}[2]{ +(#1,#2) +-- ({#1 - tan(60)*#2},0) +-- ({#1 + tan(60)*#2},0) +-- cycle; +} +\newcommand{\leftColorTriangle}[3]{ +\path[fill=#3] +\leftTriangle{#1}{#2} +} +\newcommand{\rightColorTriangle}[3]{ +\path[fill=#3] +\rightTriangle{#1}{#2} +} +\newcommand{\topColorTriangle}[3]{ +\path[fill=#3] +\topTriangle{#1}{#2} +} +\defbeamertemplate{background}{blank}{} +\defbeamertemplate{background}{smallcornertriangle}{ +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\leftColorTriangle{0.62\paperwidth}{0}{tGrey!30} +\end{tikzpicture} +} +\defbeamertemplate{background}{cyberbottom}{ +\tikzstyle{cyberVertex}=[scale=1,draw=tGrey!60,circle,fill=white] +\tikzstyle{cyberVertex2}=[scale=0.5,draw=tGrey!60,circle,fill=tGrey!60] +\tikzstyle{cyberEdge} = [draw,color=tGrey!60] +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\foreach \pos/\name in { +{(-0.05\paperwidth,0.75\paperheight)/0}, +{(0.02\paperwidth,0.53\paperheight)/1}, +{(-0.04\paperwidth,0.38\paperheight)/2}, +{(0.08\paperwidth,0.40\paperheight)/3}, +{(0.052\paperwidth,0.21\paperheight)/5}, +{(0.24\paperwidth,0.26\paperheight)/6}, +{(-0.08\paperwidth,-0.06\paperheight)/7}, +{(0.12\paperwidth,0.07\paperheight)/8}, +{(0.2\paperwidth,0.-0.08\paperheight)/9}, +{(0.38\paperwidth,0.06\paperheight)/10}, +{(0.56\paperwidth,-0.08\paperheight)/11}} +\node[cyberVertex] (\name) at \pos {}; +\foreach \pos/\name in { +{(-0.05\paperwidth,0.75\paperheight)/0}, +{(0.02\paperwidth,0.53\paperheight)/1}, +{(-0.04\paperwidth,0.38\paperheight)/2}, +{(0.08\paperwidth,0.40\paperheight)/3}, +{(0.052\paperwidth,0.21\paperheight)/5}, +{(0.24\paperwidth,0.26\paperheight)/6}, +{(-0.08\paperwidth,-0.06\paperheight)/7}, +{(0.12\paperwidth,0.07\paperheight)/8}, +{(0.2\paperwidth,0.-0.08\paperheight)/9}, +{(0.38\paperwidth,0.06\paperheight)/10}, +{(0.56\paperwidth,-0.08\paperheight)/11}} +\node[cyberVertex2] (\name_2) at \pos {}; +\foreach \source/ \dest in +{0/1,1/2,1/3,2/3,2/5,3/5,3/6,5/6,5/7,7/8,5/8,8/6,8/9,6/9,9/10,10/6,10/11} +\path[cyberEdge] (\source) -- (\dest); +\end{tikzpicture} +} +\defbeamertemplate{background}{titlebigimage}{ +\begin{tikzpicture} +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\begin{scope}[blend group=multiply] +\path[fill=tPrim]\leftTriangle{0.5\paperwidth}{0}; +\topColorTriangle{0.73\paperwidth}{0.70\paperheight}{tGrey!30}; +\ifx\inserttitlegraphic\@empty +\leftColorTriangle{0.73\paperwidth}{0.70\paperheight}{tPrim} +\else +\path[clip]\leftTriangle{0.73\paperwidth}{0.70\paperheight}; +\node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,\the\paperheight) {\inserttitlegraphic}; +\fi +\end{scope} +\path[fill=white]\rightTriangle{0.45\paperwidth}{\the\paperheight}; +\ifx\logbig\@empty \else +\node[anchor=north east,inner sep=0mm] at +(.96*\the\paperwidth,.96*\the\paperheight) {\includegraphics[width=0.28\textwidth]{\logbig}}; +\fi +\end{tikzpicture} +} +\defbeamertemplate{background}{titlesmallimage}{ +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\leftColorTriangle{0.58\paperwidth}{0}{tGrey!30} +\ifx\logbig\@empty \else +\node[anchor=north east,inner sep=0mm] at (.94*\the\paperwidth,.94*\the\paperheight) {\includegraphics[width=0.33\textwidth]{\logbig}}; +\fi +\ifx\inserttitlegraphic\@empty +\leftColorTriangle{0.58\paperwidth}{\the\paperheight}{tPrim} +\else +\path[clip]\leftTriangle{0.58\paperwidth}{\the\paperheight}; +\node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,\the\paperheight) {\inserttitlegraphic}; +\fi +\end{tikzpicture} +} +\defbeamertemplate{background}{bottomtrianglescolor}{ +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\leftColorTriangle{0.62\paperwidth}{0}{tPrim} +\rightColorTriangle{0.38\paperwidth}{0}{tSec} +\end{tikzpicture} +} +\defbeamertemplate{background}{bottomtrianglesbw}{ +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\leftColorTriangle{0.62\paperwidth}{0}{tPrim} +\rightColorTriangle{0.38\paperwidth}{0}{tGrey} +\end{tikzpicture} +} +\defbeamertemplate{background}{bigtriangles}{ +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\leftColorTriangle{0.80\paperwidth}{0.62\paperheight}{tPrim} +\rightColorTriangle{0.68\paperwidth}{0.58\paperheight}{tGrey} +\end{tikzpicture} +} +\defbeamertemplate{background}{lefttriangles}{ +\begin{tikzpicture}[blend group=multiply] +\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight); +\leftColorTriangle{0.52\paperwidth}{\the\paperheight}{tPrim} +\leftColorTriangle{0.775\paperwidth}{0}{tGrey} +\end{tikzpicture} +} +\setbeamertemplate{background}[\slidestyle] +\newcommand{\titleframe}{ +\setbeamertemplate{title page}[\titlestyle] +\setbeamertemplate{background}[\titlestyle] +\frame[plain,noframenumbering]{\titlepage} +\setbeamertemplate{background}[\slidestyle] +} +\newcommand{\sectionframe}{ +\setbeamertemplate{section page}[\sectionstyle] +\setbeamertemplate{background}[\sectionstyle] +\frame[plain,noframenumbering]{\sectionpage} +\setbeamertemplate{background}[\slidestyle] +} +\newcommand{\trigon@disablesectionpage}{ +\AtBeginSection{ +} +} +\newcommand{\trigon@enablesectionpage}{ +\AtBeginSection{ +\sectionframe +} +} +\defbeamertemplate{title page}{titlebigimage} +{ +\vskip140pt +\begin{flushright} +\begin{minipage}[t][][c]{0.5\textwidth}% +\centering +\usebeamerfont{title}\usebeamercolor[fg]{title} +\inserttitle\par +\end{minipage} +\ifx \insertsubtitle\@empty +\else +\vskip15pt +\begin{minipage}[t][][c]{0.5\textwidth}% +\centering +\usebeamerfont{subtitle}\insertsubtitle\par% +\end{minipage} +\fi +\vskip15pt +\begin{minipage}[t][][c]{0.5\textwidth}% +\centering +\usebeamerfont{author}\insertauthor% +\vskip10pt +\usebeamerfont{date}\insertdate% +\end{minipage} +\end{flushright} +\vfill +} +\defbeamertemplate{title page}{titlesmallimage} +{ +\vskip140pt% +\begin{beamercolorbox}[wd=\textwidth,sep=4pt]{title page header} +\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle\par% +\end{beamercolorbox}% +\ifx \insertsubtitle\@empty +\else +\vskip8pt +\begin{beamercolorbox}[wd=\textwidth,sep=4pt]{subtitle page header} +\usebeamerfont{subtitle}\insertsubtitle\par% +\end{beamercolorbox}% +\fi +\vskip10pt +\begin{beamercolorbox}[wd=\textwidth,sep=4pt]{author} +\usebeamerfont{author}\insertauthor% +\end{beamercolorbox} +\vskip2pt% +\begin{beamercolorbox}[wd=\textwidth,sep=4pt]{date} +\usebeamerfont{date}\insertdate% +\end{beamercolorbox} +\vfill +} +\defbeamertemplate{title page}{bottomtrianglescolor} +{ +\vskip0pt +\begin{center} +\begin{minipage}[t][][t]{\textwidth} +\centering% +\ifx\logbig\@empty \else +\includegraphics[height=0.15\textheight]{\logbig} +\fi +\end{minipage} +\vskip15pt +\begin{minipage}[t][][c]{\textwidth}% +\centering +\usebeamerfont{title}\usebeamercolor[fg]{title} +\inserttitle\par +\end{minipage} +\ifx \insertsubtitle\@empty +\else +\vskip15pt +\begin{minipage}[t][][c]{\textwidth}% +\centering +\usebeamerfont{subtitle}\insertsubtitle\par% +\end{minipage} +\fi +\vskip20pt +\begin{minipage}[t][][c]{0.5\textwidth}% +\centering +\usebeamerfont{author}\insertauthor\\[0.3cm]% +\usebeamerfont{date}\insertdate +\end{minipage} +\end{center} +\vfill +} +\defbeamertemplate{section page}{bottomtrianglescolor} +{ +\vskip40pt +\begin{center} +\begin{minipage}[t][][c]{\textwidth}% +\centering +\usebeamerfont{section title}\usebeamercolor[fg]{title} +\insertsectionhead\par +\end{minipage} +\end{center} +\vfill +} +\defbeamertemplate{section page}{bottomtrianglesbw} +{ +\vskip40pt +\begin{center} +\begin{minipage}[t][][c]{\textwidth}% +\centering +\usebeamerfont{section title}\usebeamercolor[fg]{title} +\insertsectionhead\par +\end{minipage} +\end{center} +\vfill +} +\defbeamertemplate{section page}{bigtriangles} +{ +\vskip200pt +\begin{flushright} +\begin{minipage}[t]{0.62\textwidth}%7 +\usebeamerfont{section title}\usebeamercolor[fg]{title} +\raggedleft +\insertsectionhead\par +\end{minipage} +\end{flushright} +\vfill +} +\defbeamertemplate{section page}{lefttriangles} +{ +\vskip25pt +\begin{beamercolorbox}[wd=\textwidth,leftskip=100pt,sep=4pt]{section page header} +\usebeamerfont{section title}\usebeamercolor[fg]{title} +\insertsectionhead\par +\end{beamercolorbox}% +\vfill +} +\setbeamertemplate{caption label separator}{: } +\setbeamertemplate{caption}[numbered] +\setbeamersize{text margin left=.05\paperwidth, text margin right=.05\paperwidth} +\trigon@inner@setdefaults +\ProcessPgfPackageOptions{/trigon/inner} +\endinput +%% +%% End of file `beamerinnerthemetrigon.sty'. 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'. diff --git a/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerthemetrigon.sty b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerthemetrigon.sty new file mode 100644 index 00000000000..b6c99635a33 --- /dev/null +++ b/Master/texmf-dist/tex/latex/beamertheme-trigon/beamerthemetrigon.sty @@ -0,0 +1,84 @@ +%% +%% This is file `beamerthemetrigon.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% beamerthemetrigon.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{beamerthemetrigon}[2021/03/25 v0.5.0 Trigon Beamer theme] +\RequirePackage{pgfopts} +\RequirePackage{tikz} +\pgfkeys{/trigon/.cd, + .search also={ + /trigon/inner, + /trigon/outer, + /trigon/color, + /trigon/font + } +} +\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% + } + }, +} +\pgfkeys{ + /trigon/titleformat/.code=\pgfkeysalso{ + font/titleformat title=#1, + font/titleformat subtitle=#1, + font/titleformat section=#1, + font/titleformat frame=#1, + titleformat plain=#1, + } +} +\newif\if@trigon@usesourcefonts +\pgfkeys{/trigon/.cd, + usesourcefonts/.is if=@trigon@usesourcefonts, + usesourcefonts=true, +} +\useinnertheme{trigon} +\useoutertheme{trigon} +\usecolortheme{trigon} +\usefonttheme{trigon} +\newcommand{\trigonset}[1]{\pgfkeys{/trigon/.cd,#1}} +\ProcessOptionsBeamer +\ProcessPgfOptions{/trigon} +\if@trigon@usesourcefonts% + \RequirePackage[default,t1,semibold]{sourcesanspro} +\fi +\endinput +%% +%% End of file `beamerthemetrigon.sty'. |