Add external custom themes.

This commit is contained in:
Jeff Lance 2018-08-19 20:00:28 +02:00
parent 2b2b412d95
commit 637396fa17
16 changed files with 1944 additions and 0 deletions

60
DarkTheme/dbt.sty Normal file
View File

@ -0,0 +1,60 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{dbt}
% required packages
\RequirePackage{graphicx}
\RequirePackage{fontspec}
\RequirePackage{listings}
% beamer options
\setbeameroption{hide notes}
\setbeamertemplate{note page}[plain]
\beamertemplatenavigationsymbolsempty
\hypersetup{pdfpagemode=UseNone}
% font
\setsansfont{TeX Gyre Heros}
\setbeamerfont{note page}{family*=pplx,size=\footnotesize}
% define some colors
\definecolor{keywords}{RGB}{255,0,90}
\definecolor{comments}{RGB}{81,81,81}
\definecolor{offwhite}{RGB}{249,242,215}
\definecolor{foreground}{RGB}{255,255,255}
\definecolor{background}{RGB}{24,24,24}
\definecolor{title}{RGB}{107,174,214}
\definecolor{gray}{RGB}{155,155,155}
\definecolor{subtitle}{RGB}{102,255,204}
\definecolor{hilight}{RGB}{102,255,204}
\definecolor{vhilight}{RGB}{255,111,207}
\definecolor{lolight}{RGB}{155,155,155}
% map colors to sections
\setbeamercolor{titlelike}{fg=title}
\setbeamercolor{subtitle}{fg=subtitle}
\setbeamercolor{institute}{fg=gray}
\setbeamercolor{normal text}{fg=foreground,bg=background}
\setbeamercolor{item}{fg=foreground}
\setbeamercolor{subitem}{fg=gray}
\setbeamercolor{itemize/enumerate subbody}{fg=gray}
\setbeamertemplate{itemize subitem}{{\textendash}}
\setbeamerfont{itemize/enumerate subbody}{size=\footnotesize}
\setbeamerfont{itemize/enumerate subitem}{size=\footnotesize}
% lstlisting
\lstset{
language=C,
basicstyle=\footnotesize\ttfamily,
keywordstyle=\color{keywords},
showspaces=false,
showstringspaces=false,
commentstyle=\color{comments}\emph,
frame=single,
rulecolor=\color{comments},
rulesepcolor=\color{comments}
}
% some macros
\newcommand{\subt}[1]{{\footnotesize \color{subtitle} {#1}}}
\endinput

View File

@ -0,0 +1,286 @@
\mode<presentation>
% light theme
\newcommand{\useLightTheme}{
\definecolor{text} {HTML}{000000}
\setbeamercolor*{normal text}{fg=text}
\definecolor{shadow}{HTML}{000000}
\definecolor{BGgrey01}{HTML}{E0E0E0}
\definecolor{BGgrey02}{HTML}{F5F5F5}
\definecolor{BGgrey03}{HTML}{FAFAFA}
\definecolor{BGgrey04}{HTML}{FFFFFF}
}
% dark theme
\newcommand{\useDarkTheme}{
\definecolor{text} {HTML}{FFFFFF}
\setbeamercolor*{normal text}{fg=text}
\definecolor{shadow}{HTML}{000000}
\definecolor{BGgrey01}{HTML}{000000}
\definecolor{BGgrey02}{HTML}{212121}
\definecolor{BGgrey03}{HTML}{303030}
\definecolor{BGgrey04}{HTML}{424242}
}
% PRIMARY --------------------------------------------------------------
\newcommand{\usePrimary}[3]{
\definecolor{primary} {HTML}{#1}
\definecolor{primaryD}{HTML}{#2}
\definecolor{textPrimary} {HTML}{#3}
}
% Primary Red
\newcommand{\usePrimaryRed}{
\definecolor{primary} {HTML}{F44336}
\definecolor{primaryD}{HTML}{D32F2F}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Pink
\newcommand{\usePrimaryPink}{
\definecolor{primary} {HTML}{E91E63}
\definecolor{primaryD}{HTML}{C2185B}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Purple
\newcommand{\usePrimaryPurple}{
\definecolor{primary} {HTML}{6A1B9A}
\definecolor{primaryD}{HTML}{7B1FA2}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Deep Purple
\newcommand{\usePrimaryDeepPurple}{
\definecolor{primary} {HTML}{673AB7}
\definecolor{primaryD}{HTML}{512DA8}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Indigo
\newcommand{\usePrimaryIndigo}{
\definecolor{primary} {HTML}{3F51B5}
\definecolor{primaryD}{HTML}{303F9F}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Blue
\newcommand{\usePrimaryBlue}{
\definecolor{primary} {HTML}{2196F3}
\definecolor{primaryD}{HTML}{1976D2}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Light Blue
\newcommand{\usePrimaryLightBlue}{
\definecolor{primary} {HTML}{03A9F4}
\definecolor{primaryD}{HTML}{0288D1}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Cyan
\newcommand{\usePrimaryCyan}{
\definecolor{primary} {HTML}{00BCD4}
\definecolor{primaryD}{HTML}{0097A7}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Teal
\newcommand{\usePrimaryTeal}{
\definecolor{primary} {HTML}{009688}
\definecolor{primaryD}{HTML}{00796B}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Green
\newcommand{\usePrimaryGreen}{
\definecolor{primary} {HTML}{4CAF50}
\definecolor{primaryD}{HTML}{388E3C}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Light Green
\newcommand{\usePrimaryLightGreen}{
\definecolor{primary} {HTML}{8BC34A}
\definecolor{primaryD}{HTML}{689F38}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Lime
\newcommand{\usePrimaryLime}{
\definecolor{primary} {HTML}{CDDC39}
\definecolor{primaryD}{HTML}{AFB42B}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Yellow
\newcommand{\usePrimaryYellow}{
\definecolor{primary} {HTML}{FFEB3B}
\definecolor{primaryD}{HTML}{FBC02D}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Amber
\newcommand{\usePrimaryAmber}{
\definecolor{primary} {HTML}{FFC107}
\definecolor{primaryD}{HTML}{FFA000}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Orange
\newcommand{\usePrimaryOrange}{
\definecolor{primary} {HTML}{FF9800}
\definecolor{primaryD}{HTML}{F57C00}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Deep Orange
\newcommand{\usePrimaryDeepOrange}{
\definecolor{primary} {HTML}{FF5722}
\definecolor{primaryD}{HTML}{E64A19}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Brown
\newcommand{\usePrimaryBrown}{
\definecolor{primary} {HTML}{795548}
\definecolor{primaryD}{HTML}{5D4037}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% Primary Grey
\newcommand{\usePrimaryGrey}{
\definecolor{primary} {HTML}{9E9E9E}
\definecolor{primaryD}{HTML}{616161}
\definecolor{textPrimary} {HTML}{000000}
}
% Primary Blue Grey
\newcommand{\usePrimaryBlueGrey}{
\definecolor{primary} {HTML}{607D8B}
\definecolor{primaryD}{HTML}{455A64}
\definecolor{textPrimary} {HTML}{FFFFFF}
}
% ACCENT ---------------------------------------------------------------
\newcommand{\useAccent}[2]{
\definecolor{accent} {HTML}{#1}
\definecolor{textAccent} {HTML}{#2}
}
% Accent Red
\newcommand{\useAccentRed}{
\definecolor{accent} {HTML}{FF1744}
\definecolor{textAccent} {HTML}{FFFFFF}
}
% Accent Pink
\newcommand{\useAccentPink}{
\definecolor{accent} {HTML}{F50057}
\definecolor{textAccent} {HTML}{FFFFFF}
}
% Accent Purple
\newcommand{\useAccentPurple}{
\definecolor{accent} {HTML}{D500F9}
\definecolor{textAccent} {HTML}{FFFFFF}
}
% Accent Deep Purple
\newcommand{\useAccentDeepPurple}{
\definecolor{accent} {HTML}{651FFF}
\definecolor{textAccent} {HTML}{FFFFFF}
}
% Accent Indigo
\newcommand{\useAccentIndigo}{
\definecolor{accent} {HTML}{3D5AFE}
\definecolor{textAccent} {HTML}{FFFFFF}
}
% Accent Blue
\newcommand{\useAccentBlue}{
\definecolor{accent} {HTML}{2979FF}
\definecolor{textAccent} {HTML}{FFFFFF}
}
% Accent Light Blue
\newcommand{\useAccentLightBlue}{
\definecolor{accent} {HTML}{00B0FF}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Cyan
\newcommand{\useAccentCyan}{
\definecolor{accent} {HTML}{00E5FF}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Teal
\newcommand{\useAccentTeal}{
\definecolor{accent} {HTML}{1DE9B6}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Green
\newcommand{\useAccentGreen}{
\definecolor{accent} {HTML}{00E676}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Light Green
\newcommand{\useAccentLightGreen}{
\definecolor{accent} {HTML}{76FF03}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Lime
\newcommand{\useAccentLime}{
\definecolor{accent} {HTML}{C6FF00}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Yellow
\newcommand{\useAccentYellow}{
\definecolor{accent} {HTML}{FFEA00}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Amber
\newcommand{\useAccentAmber}{
\definecolor{accent} {HTML}{FFC400}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Orange
\newcommand{\useAccentOrange}{
\definecolor{accent} {HTML}{FF9100}
\definecolor{textAccent} {HTML}{000000}
}
% Accent Deep Orange
\newcommand{\useAccentDeepOrange}{
\definecolor{accent} {HTML}{FF3D00}
\definecolor{textAccent} {HTML}{FFFFFF}
}
\useLightTheme
\usePrimaryIndigo
\useAccentPink
% more color settings
\setbeamercolor{block title}{fg=primary}
\hypersetup{linkcolor=primary}
\setbeamercolor{section in toc}{fg=primary}
\setbeamercolor{subsection in toc}{fg=primary}
\mode
<all>

View File

@ -0,0 +1,42 @@
\setbeamercolor{background canvas}{bg=BGgrey03}
% Title page
\defbeamertemplate*{title page}{material}[1][]
{
\makebox[\linewidth][c]{%
\begin{minipage}[t][\paperheight]{\paperwidth}
\raggedright
\begin{tcolorbox}[colback=primary, enhanced, sharpish corners=all, boxrule=0mm, coltext=textPrimary,
fuzzy shadow={0mm}{-0.6mm}{0mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.2mm}{0mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
fuzzy shadow={0mm}{ 0.6mm}{0mm}{0.2mm}{shadow!40!primary}, % topSmall
fuzzy shadow={0mm}{ 0.2mm}{0mm}{0.2mm}{shadow!20!primary}, % topBig
width=\paperwidth, height=0.6\paperheight, flushright upper, valign=bottom, boxsep=0.5cm]
{\usebeamerfont{title} \inserttitle}\\
{\usebeamerfont{author}\insertauthor}\\
{\usebeamerfont{author}\insertdate}
\end{tcolorbox}
%\begin{tcolorbox}[arc=5mm,width=10mm,height=10mm, enhanced, %
%colback=accent, coltext=textAccent, %
%fuzzy shadow={0mm}{ 0.9mm}{ 0.6mm}{0.2mm}{shadow!20!primary}, % top
%fuzzy shadow={0mm}{-0.6mm}{-0.1mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
%fuzzy shadow={0mm}{-0.2mm}{-0.2mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
%left=1.5mm, right=1.5mm, top=1.5mm, bottom=1.5mm, boxsep=0mm, %
%boxrule=0mm, enlarge left by=10mm, enlarge top by=-10mm]%
%\includegraphics[width=7mm]{\iconFolder/ic_account_circle_48px}
%\end{tcolorbox}
\end{minipage}%
}%
\vfill
}
% Items
\setbeamertemplate{enumerate items}[circle]
\setbeamertemplate{itemize items}{\Large $\bullet$}
\setbeamertemplate{sections/subsections in toc}[circle]
\setbeamercolor{local structure}{fg=accent}
\mode
<all>

View File

@ -0,0 +1,28 @@
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{material}[1][]
{
\makebox[\linewidth][c]{%
\begin{minipage}[t]{\paperwidth}
\raggedright
\begin{tcolorbox}[colback=primary, enhanced, sharpish corners=all, boxrule=0mm, coltext=textPrimary, %
left=6mm, right=6mm, top=2.6mm, bottom=2mm,%
fuzzy shadow={0mm}{-0.9mm}{0mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.8mm}{0mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
fuzzy shadow={0mm}{ 0.6mm}{0mm}{0.2mm}{shadow!40!primary}, % topSmall
fuzzy shadow={0mm}{ 0.5mm}{0mm}{0.2mm}{shadow!20!primary}, % topBig
width=\paperwidth, boxsep=2mm]
\ifx\insertframesubtitle\@empty%
{\usebeamerfont{frametitle} \insertframetitle}
\else%
{\usebeamerfont{frametitle} \insertframetitle}
{\usebeamerfont{framesubtitle} \insertframesubtitle}
\fi
\end{tcolorbox}
\end{minipage}%
}%
}
\mode<all>

View File

@ -0,0 +1,75 @@
\mode<presentation>
% Requirement
\RequirePackage{tikz}
\RequirePackage{xcolor}
\RequirePackage{ifthen}
\RequirePackage[many]{tcolorbox}
\RequirePackage{graphicx}
% Settings
\useinnertheme{material}
\useoutertheme{material}
\usecolortheme{material}
\setbeamertemplate{navigation symbols}{}
\setbeamerfont*{title}{size=\Huge}
\setbeamerfont*{frametitle}{size=\large}
% tcolorbox settings
\tcbset{%
colback=BGgrey04, colbacktitle=primary, coltitle=textPrimary, coltext=text,%
enhanced, sharpish corners=all,%
fuzzy shadow={0mm}{ 0.9mm}{ 0.6mm}{0.2mm}{shadow!20!BGgrey03}, % top
fuzzy shadow={0mm}{-0.6mm}{-0.1mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.2mm}{-0.2mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
left=6mm, right=6mm, top=6mm, bottom=6mm, middle=4mm,%
title filled, boxrule=0mm, %
segmentation code={\path[draw=BGgrey01](segmentation.west) -- (segmentation.east);}%
}
\newenvironment{card}[1][pR23s2OTKY]{%
\ifthenelse{\equal{#1}{pR23s2OTKY}}{%
\begin{tcolorbox}%
}{%
\begin{tcolorbox}[colbacktitle=primary, coltitle=textPrimary, title=#1, left=6mm, right=6mm, top=3mm, bottom=4mm, middle=4mm, toptitle=4mm, bottomtitle=3mm,]%
}%
}{%
\end{tcolorbox}%
}
\newenvironment{cardTiny}{%
\begin{tcolorbox}[colbacktitle=primary, left=4mm, right=4mm, top=2mm, bottom=2mm, middle=4mm, toptitle=4mm, bottomtitle=3mm,]%
}{%
\end{tcolorbox}%
}
\newcommand{\cardImg}[3][pR23s2OTKY]{%
\ifthenelse{\equal{#1}{pR23s2OTKY}}{%
\begin{tcolorbox}[lower separated=false, leftupper=0mm, rightupper=0mm, top=0mm, bottom=0mm, middle=1.5mm, boxsep=0mm, width=#3,]%
\includegraphics[width=\textwidth]{#2}
\end{tcolorbox}
}{%
\begin{tcolorbox}[lower separated=false, leftupper=0mm, rightupper=0mm, top=0mm, middle=1.5mm, boxsep=0mm, leftlower=6mm, rightlower=6mm, bottom=6mm, , width=#3,]%
\includegraphics[width=\textwidth]{#2}
\tcblower
#1%
\end{tcolorbox}
}%
}
\newenvironment{frameImg}[2][width]{%
\ifthenelse{\equal{#1}{width}}{%
\usebackgroundtemplate{\hspace{-0.5\paperwidth}\parbox[c][\paperheight][c]{2\paperwidth}{\centering\includegraphics[width=\paperwidth, keepaspectratio=true]{#2}}}%
}{%
\usebackgroundtemplate{\hspace{-0.5\paperwidth}\parbox[c][\paperheight][c]{2\paperwidth}{\centering\includegraphics[height=\paperheight, keepaspectratio=true]{#2}}}%
}%
\begin{frame}
}{%
\end{frame}
}
\mode<all>

View File

@ -0,0 +1,39 @@
%%
%% This is file `beamercolorthememetropolis-highcontrast.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamercolorthememetropolis-highcontrast.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{beamercolorthememetropolis-highcontrast}[2017/01/23 Metropolis color theme]
\usecolortheme{metropolis}
\definecolor{mAlert}{HTML}{AD003D}
\definecolor{mExample}{HTML}{005580}
\setbeamercolor{normal text}{%
fg=black,
bg=white
}
\setbeamercolor{alerted text}{%
fg=mAlert,
}
\setbeamercolor{example text}{%
fg=mExample,
}
\mode<all>
\endinput
%%
%% End of file `beamercolorthememetropolis-highcontrast.sty'.

View File

@ -0,0 +1,138 @@
%%
%% This is file `beamercolorthememetropolis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamercolorthememetropolis.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{beamercolorthememetropolis}[2017/01/23 Metropolis color theme]
\RequirePackage{pgfopts}
\pgfkeys{
/metropolis/color/block/.cd,
.is choice,
transparent/.code=\metropolis@block@transparent,
fill/.code=\metropolis@block@fill,
}
\pgfkeys{
/metropolis/color/background/.cd,
.is choice,
dark/.code=\metropolis@colors@dark,
light/.code=\metropolis@colors@light,
}
\newcommand{\metropolis@color@setdefaults}{
\pgfkeys{/metropolis/color/.cd,
background=light,
block=transparent,
}
}
\definecolor{mDarkBrown}{HTML}{604c38}
\definecolor{mDarkTeal}{HTML}{23373b}
\definecolor{mLightBrown}{HTML}{EB811B}
\definecolor{mLightGreen}{HTML}{14B03D}
\newcommand{\metropolis@colors@dark}{
\setbeamercolor{normal text}{%
fg=black!2,
bg=mDarkTeal
}
\usebeamercolor[fg]{normal text}
}
\newcommand{\metropolis@colors@light}{
\setbeamercolor{normal text}{%
fg=mDarkTeal,
bg=black!2
}
}
\setbeamercolor{alerted text}{%
fg=mLightBrown
}
\setbeamercolor{example text}{%
fg=mLightGreen
}
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
\setbeamercolor{author}{use=normal text, parent=normal text}
\setbeamercolor{date}{use=normal text, parent=normal text}
\setbeamercolor{institute}{use=normal text, parent=normal text}
\setbeamercolor{structure}{use=normal text, fg=normal text.fg}
\setbeamercolor{palette primary}{%
use=normal text,
fg=normal text.bg,
bg=normal text.fg
}
\setbeamercolor{frametitle}{%
use=palette primary,
parent=palette primary
}
\setbeamercolor{progress bar}{%
use=alerted text,
fg=alerted text.fg,
bg=alerted text.fg!50!black!30
}
\setbeamercolor{title separator}{
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in head/foot}{%
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in section page}{
use=progress bar,
parent=progress bar
}
\newcommand{\metropolis@block@transparent}{
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg,
bg=
}
\setbeamercolor{block body}{
bg=
}
}
\newcommand{\metropolis@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{bibliography entry author}{fg=, bg=}
\setbeamercolor{bibliography entry title}{fg=, bg=}
\setbeamercolor{bibliography entry location}{fg=, bg=}
\setbeamercolor{bibliography entry note}{fg=, bg=}
\metropolis@color@setdefaults
\ProcessPgfPackageOptions{/metropolis/color}
\mode<all>
\endinput
%%
%% End of file `beamercolorthememetropolis.sty'.

View File

@ -0,0 +1,325 @@
%%
%% This is file `beamerfontthememetropolis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamerfontthememetropolis.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{beamerfontthememetropolis}[2017/01/23 Metropolis font theme]
\RequirePackage{etoolbox}
\RequirePackage{ifxetex}
\RequirePackage{ifluatex}
\RequirePackage{pgfopts}
\ifboolexpr{bool {xetex} or bool {luatex}}{
\@ifpackageloaded{fontspec}{
\PassOptionsToPackage{no-math}{fontspec}
}{
\RequirePackage[no-math]{fontspec}
}
\newcounter{fontsnotfound}
\newcommand{\checkfont}[1]{%
\suppressfontnotfounderror=1%
\font\x = "#1" at 10pt
\selectfont
\ifx\x\nullfont%
\stepcounter{fontsnotfound}%
\fi%
\suppressfontnotfounderror=0%
}
\newcommand{\iffontsavailable}[3]{%
\setcounter{fontsnotfound}{0}%
\expandafter\forcsvlist\expandafter%
\checkfont\expandafter{#1}%
\ifnum\value{fontsnotfound}=0%
#2%
\else%
#3%
\fi%
}
\iffontsavailable{Fira Sans Light,%
Fira Sans Light Italic,%
Fira Sans,%
Fira Sans Italic}%
{%
\setsansfont[ItalicFont={Fira Sans Light Italic},%
BoldFont={Fira Sans},%
BoldItalicFont={Fira Sans Italic}]%
{Fira Sans Light}%
}{%
\iffontsavailable{Fira Sans Light OT,%
Fira Sans Light Italic OT,%
Fira Sans OT,%
Fira Sans Italic OT}%
{%
\setsansfont[ItalicFont={Fira Sans Light Italic OT},%
BoldFont={Fira Sans OT},%
BoldItalicFont={Fira Sans Italic OT}]%
{Fira Sans Light OT}%
}{%
\PackageWarning{beamerthememetropolis}{%
Could not find Fira Sans fonts%
}
}
}
\iffontsavailable{Fira Mono, Fira Mono Bold}{%
\setmonofont[BoldFont={Fira Mono Medium}]{Fira Mono}%
}{%
\iffontsavailable{Fira Mono OT, Fira Mono Bold OT}{%
\setmonofont[BoldFont={Fira Mono Medium OT}]{Fira Mono OT}%
}{%
\PackageWarning{beamerthememetropolis}{%
Could not find Fira Mono fonts%
}
}
}
\AtBeginEnvironment{tabular}{%
\addfontfeature{Numbers={Monospaced}}%
}
}{%
\PackageWarning{beamerthememetropolis}{%
You need to compile with XeLaTeX or LuaLaTeX to use the Fira fonts%
}
}
\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*{subtitle}{size=\large}
\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}
\pgfkeys{
/metropolis/font/titleformat title/.cd,
.is choice,
regular/.code={%
\let\metropolis@titleformat\@empty%
\setbeamerfont{title}{shape=\normalfont}%
},
smallcaps/.code={%
\let\metropolis@titleformat\@empty%
\setbeamerfont{title}{shape=\scshape}%
},
allsmallcaps/.code={%
\let\metropolis@titleformat\lowercase%
\setbeamerfont{title}{shape=\scshape}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat title=allsmallcaps can lead to problems%
}
},
allcaps/.code={%
\let\metropolis@titleformat\uppercase%
\setbeamerfont{title}{shape=\normalfont}
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat title=allcaps can lead to problems%
}
},
}
\pgfkeys{
/metropolis/font/titleformat subtitle/.cd,
.is choice,
regular/.code={%
\let\metropolis@subtitleformat\@empty%
\setbeamerfont{subtitle}{shape=\normalfont}%
},
smallcaps/.code={%
\let\metropolis@subtitleformat\@empty%
\setbeamerfont{subtitle}{shape=\scshape}%
},
allsmallcaps/.code={%
\let\metropolis@subtitleformat\lowercase%
\setbeamerfont{subtitle}{shape=\scshape}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat subtitle=allsmallcaps can lead to problems%
}
},
allcaps/.code={%
\let\metropolis@subtitleformat\uppercase%
\setbeamerfont{subtitle}{shape=\normalfont}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat subtitle=allcaps can lead to problems%
}
},
}
\pgfkeys{
/metropolis/font/titleformat section/.cd,
.is choice,
regular/.code={%
\let\metropolis@sectiontitleformat\@empty%
\setbeamerfont{section title}{shape=\normalfont}%
},
smallcaps/.code={%
\let\metropolis@sectiontitleformat\@empty%
\setbeamerfont{section title}{shape=\scshape}%
},
allsmallcaps/.code={%
\let\metropolis@sectiontitleformat\MakeLowercase%
\setbeamerfont{section title}{shape=\scshape}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat section=allsmallcaps can lead to problems%
}
},
allcaps/.code={%
\let\metropolis@sectiontitleformat\MakeUppercase%
\setbeamerfont{section title}{shape=\normalfont}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat section=allcaps can lead to problems%
}
},
}
\pgfkeys{
/metropolis/font/titleformat frame/.cd,
.is choice,
regular/.code={%
\let\metropolis@frametitleformat\@empty%
\setbeamerfont{frametitle}{shape=\normalfont}%
},
smallcaps/.code={%
\let\metropolis@frametitleformat\@empty%
\setbeamerfont{frametitle}{shape=\scshape}%
},
allsmallcaps/.code={%
\let\metropolis@frametitleformat\MakeLowercase%
\setbeamerfont{frametitle}{shape=\scshape}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat frame=allsmallcaps can lead to problems%
}
},
allcaps/.code={%
\let\metropolis@frametitleformat\MakeUppercase%
\setbeamerfont{frametitle}{shape=\normalfont}
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat frame=allcaps can lead to problems%
}
},
}
\pgfkeys{
/metropolis/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{\metropolis@font@setdefaults}{
\pgfkeys{/metropolis/font/.cd,
titleformat title=regular,
titleformat subtitle=regular,
titleformat section=regular,
titleformat frame=regular,
}
}
\def\metropolis@titleformat#1{#1}
\def\metropolis@subtitleformat#1{#1}
\def\metropolis@sectiontitleformat#1{#1}
\def\metropolis@frametitleformat#1{#1}
\patchcmd{\beamer@title}%
{\def\inserttitle{#2}}%
{\def\inserttitle{\metropolis@titleformat{#2}}}%
{}%
{\PackageError{beamerfontthememetropolis}{Patching title failed}\@ehc}
\patchcmd{\beamer@subtitle}%
{\def\insertsubtitle{#2}}%
{\def\insertsubtitle{\metropolis@subtitleformat{#2}}}%
{}%
{\PackageError{beamerfontthememetropolis}{Patching subtitle failed}\@ehc}
\patchcmd{\sectionentry}
{\def\insertsectionhead{#2}}
{\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}}
{}
{\PackageError{beamerfontthememetropolis}{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\metropolis@sectiontitleformat{\unexpanded{#1}}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@section}
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
\metropolis@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\metropolis@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\if@tempswa\else
\PackageError{beamerfontthememetropolis}{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\metropolis@sectiontitleformat{\unexpanded{#1}}}}}
{\@tempswatrue}
{}
\patchcmd{\beamer@subsection}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
\metropolis@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\metropolis@sectiontitleformat{#1}}}}
{\@tempswatrue}
{}
\if@tempswa\else
\PackageError{beamerfontthememetropolis}{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{{\metropolis@frametitleformat{#2}\ifnum%
\beamer@autobreakcount>0\relax{}\space%
\usebeamertemplate*{frametitle continuation}\fi}}%
\gdef\beamer@frametitle{#2}%
\gdef\beamer@shortframetitle{#1}%
}}
{}
{\PackageError{beamerfontthememetropolis}{Patching frame title failed}\@ehc}
\metropolis@font@setdefaults
\ProcessPgfPackageOptions{/metropolis/font}
\endinput
%%
%% End of file `beamerfontthememetropolis.sty'.

View File

@ -0,0 +1,293 @@
%%
%% This is file `beamerinnerthememetropolis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamerinnerthememetropolis.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{beamerinnerthememetropolis}[2017/01/23 Metropolis inner theme]
\RequirePackage{etoolbox}
\RequirePackage{keyval}
\RequirePackage{calc}
\RequirePackage{pgfopts}
\RequirePackage{tikz}
\pgfkeys{
/metropolis/inner/sectionpage/.cd,
.is choice,
none/.code=\metropolis@disablesectionpage,
simple/.code={\metropolis@enablesectionpage
\setbeamertemplate{section page}[simple]},
progressbar/.code={\metropolis@enablesectionpage
\setbeamertemplate{section page}[progressbar]},
}
\pgfkeys{
/metropolis/inner/subsectionpage/.cd,
.is choice,
none/.code=\metropolis@disablesubsectionpage,
simple/.code={\metropolis@enablesubsectionpage
\setbeamertemplate{section page}[simple]},
progressbar/.code={\metropolis@enablesubsectionpage
\setbeamertemplate{section page}[progressbar]},
}
\newcommand{\metropolis@inner@setdefaults}{
\pgfkeys{/metropolis/inner/.cd,
sectionpage=progressbar,
subsectionpage=none
}
}
\setbeamertemplate{title page}{
\begin{minipage}[b][\paperheight]{\textwidth}
\ifx\inserttitlegraphic\@empty\else\usebeamertemplate*{title graphic}\fi
\vfill%
\ifx\inserttitle\@empty\else\usebeamertemplate*{title}\fi
\ifx\insertsubtitle\@empty\else\usebeamertemplate*{subtitle}\fi
\usebeamertemplate*{title separator}
\ifx\beamer@shortauthor\@empty\else\usebeamertemplate*{author}\fi
\ifx\insertdate\@empty\else\usebeamertemplate*{date}\fi
\ifx\insertinstitute\@empty\else\usebeamertemplate*{institute}\fi
\vfill
\vspace*{1mm}
\end{minipage}
}
\def\maketitle{%
\ifbeamer@inframe
\titlepage
\else
\frame[plain,noframenumbering]{\titlepage}
\fi
}
\def\titlepage{%
\usebeamertemplate{title page}
}
\setbeamertemplate{title graphic}{
\vbox to 0pt {
\vspace*{2em}
\inserttitlegraphic%
}%
\nointerlineskip%
}
\setbeamertemplate{title}{
\raggedright%
\linespread{1.0}%
\inserttitle%
\par%
\vspace*{0.5em}
}
\setbeamertemplate{subtitle}{
\raggedright%
\insertsubtitle%
\par%
\vspace*{0.5em}
}
\newlength{\metropolis@titleseparator@linewidth}
\setlength{\metropolis@titleseparator@linewidth}{0.4pt}
\setbeamertemplate{title separator}{
\tikzexternaldisable%
\begin{tikzpicture}
\fill[fg] (0,0) rectangle (\textwidth, \metropolis@titleseparator@linewidth);
\end{tikzpicture}%
\tikzexternalenable%
\par%
}
\setbeamertemplate{author}{
\vspace*{2em}
\insertauthor%
\par%
\vspace*{0.25em}
}
\setbeamertemplate{date}{
\insertdate%
\par%
}
\setbeamertemplate{institute}{
\vspace*{3mm}
\insertinstitute%
\par%
}
\defbeamertemplate{section page}{simple}{
\begin{center}
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\par
\ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title}
\insertsubsectionhead
\fi
\end{center}
}
\defbeamertemplate{section page}{progressbar}{
\centering
\begin{minipage}{22em}
\raggedright
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\\[-1ex]
\usebeamertemplate*{progress bar in section page}
\par
\ifx\insertsubsectionhead\@empty\else%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\insertsubsectionhead
\fi
\end{minipage}
\par
\vspace{\baselineskip}
}
\newcommand{\metropolis@disablesectionpage}{
\AtBeginSection{
% intentionally empty
}
}
\newcommand{\metropolis@enablesectionpage}{
\AtBeginSection{
\ifbeamer@inframe
\sectionpage
\else
\frame[plain,c,noframenumbering]{\sectionpage}
\fi
}
}
\setbeamertemplate{subsection page}{%
\usebeamertemplate*{section page}
}
\newcommand{\metropolis@disablesubsectionpage}{
\AtBeginSubsection{
% intentionally empty
}
}
\newcommand{\metropolis@enablesubsectionpage}{
\AtBeginSubsection{
\ifbeamer@inframe
\subsectionpage
\else
\frame[plain,c,noframenumbering]{\subsectionpage}
\fi
}
}
\newlength{\metropolis@progressonsectionpage}
\newlength{\metropolis@progressonsectionpage@linewidth}
\setlength{\metropolis@progressonsectionpage@linewidth}{0.4pt}
\setbeamertemplate{progress bar in section page}{
\setlength{\metropolis@progressonsectionpage}{%
\textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\tikzexternaldisable%
\begin{tikzpicture}
\fill[bg] (0,0) rectangle (\textwidth, \metropolis@progressonsectionpage@linewidth);
\fill[fg] (0,0) rectangle (\metropolis@progressonsectionpage, \metropolis@progressonsectionpage@linewidth);
\end{tikzpicture}%
\tikzexternalenable%
}
\def\inserttotalframenumber{100}
\newlength{\metropolis@blocksep}
\newlength{\metropolis@blockadjust}
\setlength{\metropolis@blocksep}{0.75ex}
\setlength{\metropolis@blockadjust}{0.25ex}
\providecommand{\metropolis@strut}{%
\vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}%
}
\newcommand{\metropolis@block}[1]{
\par\vskip\medskipamount%
\setlength{\parskip}{0pt}
\ifbeamercolorempty[bg]{block title#1}{%
\begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}}{%
\ifbeamercolorempty[bg]{block title}{%
\begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}%
}%
{%
\begin{beamercolorbox}[
sep=\dimexpr\metropolis@blocksep-\metropolis@blockadjust\relax,
leftskip=\metropolis@blockadjust,
rightskip=\dimexpr\metropolis@blockadjust plus 4em\relax
]{block title#1}%
}}%
\usebeamerfont*{block title#1}%
\metropolis@strut%
\insertblocktitle%
\metropolis@strut%
\end{beamercolorbox}%
\nointerlineskip%
\ifbeamercolorempty[bg]{block body#1}{%
\begin{beamercolorbox}[vmode]{block body#1}}{
\ifbeamercolorempty[bg]{block body}{%
\begin{beamercolorbox}[vmode]{block body#1}%
}{%
\begin{beamercolorbox}[sep=\metropolis@blocksep, vmode]{block body#1}%
\vspace{-\metropolis@parskip}
}}%
\usebeamerfont{block body#1}%
\setlength{\parskip}{\metropolis@parskip}%
}
\setbeamertemplate{block begin}{\metropolis@block{}}
\setbeamertemplate{block alerted begin}{\metropolis@block{ alerted}}
\setbeamertemplate{block example begin}{\metropolis@block{ example}}
\setbeamertemplate{block end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{block alerted end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{block example end}{\end{beamercolorbox}\vspace*{0.2ex}}
\setbeamertemplate{itemize items}{\textbullet}
\setbeamertemplate{caption label separator}{: }
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{footnote}{%
\parindent 0em\noindent%
\raggedright
\usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
}
\newlength{\metropolis@parskip}
\setlength{\metropolis@parskip}{0.5em}
\setlength{\parskip}{\metropolis@parskip}
\linespread{1.15}
\define@key{beamerframe}{c}[true]{% centered
\beamer@frametopskip=0pt plus 1fill\relax%
\beamer@framebottomskip=0pt plus 1fill\relax%
\beamer@frametopskipautobreak=0pt plus .4\paperheight\relax%
\beamer@framebottomskipautobreak=0pt plus .6\paperheight\relax%
\def\beamer@initfirstlineunskip{}%
}
\providebool{metropolis@standout}
\define@key{beamerframe}{standout}[true]{%
\booltrue{metropolis@standout}
\begingroup
\setkeys{beamerframe}{c}
\setkeys{beamerframe}{noframenumbering}
\ifbeamercolorempty[bg]{palette primary}{
\setbeamercolor{background canvas}{
use=palette primary,
bg=-palette primary.fg
}
}{
\setbeamercolor{background canvas}{
use=palette primary,
bg=palette primary.bg
}
}
\setbeamercolor{local structure}{
fg=palette primary.fg
}
\centering
\usebeamercolor[fg]{palette primary}
\usebeamerfont{standout}
}
\apptocmd{\beamer@reseteecodes}{%
\ifbool{metropolis@standout}{
\endgroup
\boolfalse{metropolis@standout}
}{}
}{}{}
\metropolis@inner@setdefaults
\ProcessPgfPackageOptions{/metropolis/inner}
\endinput
%%
%% End of file `beamerinnerthememetropolis.sty'.

View File

@ -0,0 +1,137 @@
%%
%% This is file `beamerouterthememetropolis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamerouterthememetropolis.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{beamerouterthememetropolis}[2017/01/23 Metropolis outer theme]
\RequirePackage{etoolbox}
\RequirePackage{calc}
\RequirePackage{pgfopts}
\pgfkeys{
/metropolis/outer/numbering/.cd,
.is choice,
none/.code=\setbeamertemplate{frame numbering}[none],
counter/.code=\setbeamertemplate{frame numbering}[counter],
fraction/.code=\setbeamertemplate{frame numbering}[fraction],
}
\pgfkeys{
/metropolis/outer/progressbar/.cd,
.is choice,
none/.code={%
\setbeamertemplate{headline}[plain]
\setbeamertemplate{frametitle}[plain]
\setbeamertemplate{footline}[plain]
},
head/.code={\pgfkeys{/metropolis/outer/progressbar=none}
\addtobeamertemplate{headline}{}{%
\usebeamertemplate*{progress bar in head/foot}
}
},
frametitle/.code={\pgfkeys{/metropolis/outer/progressbar=none}
\addtobeamertemplate{frametitle}{}{%
\usebeamertemplate*{progress bar in head/foot}
}
},
foot/.code={\pgfkeys{/metropolis/outer/progressbar=none}
\addtobeamertemplate{footline}{}{%
\usebeamertemplate*{progress bar in head/foot}%
}
},
}
\newcommand{\metropolis@outer@setdefaults}{
\pgfkeys{/metropolis/outer/.cd,
numbering=counter,
progressbar=none,
}
}
\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{headline}{plain}{}
\defbeamertemplate{footline}{plain}{%
\begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
\usebeamerfont{page number in head/foot}%
\usebeamertemplate*{frame footer}
\hfill%
\usebeamertemplate*{frame numbering}
\end{beamercolorbox}%
}
\newlength{\metropolis@frametitle@padding}
\setlength{\metropolis@frametitle@padding}{2.2ex}
\newcommand{\metropolis@frametitlestrut@start}{
\rule{0pt}{\metropolis@frametitle@padding +%
\totalheightof{%
\ifcsdef{metropolis@frametitleformat}{\metropolis@frametitleformat X}{X}%
}%
}%
}
\newcommand{\metropolis@frametitlestrut@end}{
\rule[-\metropolis@frametitle@padding]{0pt}{\metropolis@frametitle@padding}
}
\defbeamertemplate{frametitle}{plain}{%
\nointerlineskip%
\begin{beamercolorbox}[%
wd=\paperwidth,%
sep=0pt,%
leftskip=\metropolis@frametitle@padding,%
rightskip=\metropolis@frametitle@padding,%
]{frametitle}%
\metropolis@frametitlestrut@start%
\insertframetitle%
\nolinebreak%
\metropolis@frametitlestrut@end%
\end{beamercolorbox}%
}
\setbeamertemplate{frametitle continuation}{%
\usebeamerfont{frametitle}
\romannumeral \insertcontinuationcount
}
\newlength{\metropolis@progressinheadfoot}
\newlength{\metropolis@progressinheadfoot@linewidth}
\setlength{\metropolis@progressinheadfoot@linewidth}{0.4pt}
\setbeamertemplate{progress bar in head/foot}{
\nointerlineskip
\setlength{\metropolis@progressinheadfoot}{%
\paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}%
\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}
\tikzexternaldisable%
\begin{tikzpicture}
\fill[bg] (0,0) rectangle (\paperwidth, \metropolis@progressinheadfoot@linewidth);
\fill[fg] (0,0) rectangle (\metropolis@progressinheadfoot, \metropolis@progressinheadfoot@linewidth);
\end{tikzpicture}%
\tikzexternalenable%
\end{beamercolorbox}
}
\AtBeginDocument{%
\apptocmd{\appendix}{%
\pgfkeys{%
/metropolis/outer/.cd,
numbering=none,
progressbar=none}
}{}{}
}
\metropolis@outer@setdefaults
\ProcessPgfPackageOptions{/metropolis/outer}
\endinput
%%
%% End of file `beamerouterthememetropolis.sty'.

View File

@ -0,0 +1,107 @@
%%
%% This is file `beamerthememetropolis.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamerthememetropolis.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{beamerthememetropolis}
[2017/01/23 v1.2 Metropolis Beamer theme]
\RequirePackage{etoolbox}
\RequirePackage{pgfopts}
\pgfkeys{/metropolis/.cd,
.search also={
/metropolis/inner,
/metropolis/outer,
/metropolis/color,
/metropolis/font,
}
}
\pgfkeys{
/metropolis/titleformat plain/.cd,
.is choice,
regular/.code={%
\let\metropolis@plaintitleformat\@empty%
\setbeamerfont{standout}{shape=\normalfont}%
},
smallcaps/.code={%
\let\metropolis@plaintitleformat\@empty%
\setbeamerfont{standout}{shape=\scshape}%
},
allsmallcaps/.code={%
\let\metropolis@plaintitleformat\MakeLowercase%
\setbeamerfont{standout}{shape=\scshape}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat plain=allsmallcaps can lead to problems%
}
},
allcaps/.code={%
\let\metropolis@plaintitleformat\MakeUppercase%
\setbeamerfont{standout}{shape=\normalfont}%
\PackageWarning{beamerthememetropolis}{%
Be aware that titleformat plain=allcaps can lead to problems%
}
},
}
\pgfkeys{
/metropolis/titleformat/.code=\pgfkeysalso{
font/titleformat title=#1,
font/titleformat subtitle=#1,
font/titleformat section=#1,
font/titleformat frame=#1,
titleformat plain=#1,
}
}
\pgfkeys{/metropolis/.cd,
usetitleprogressbar/.code=\pgfkeysalso{outer/progressbar=frametitle},
noslidenumbers/.code=\pgfkeysalso{outer/numbering=none},
usetotalslideindicator/.code=\pgfkeysalso{outer/numbering=fraction},
nosectionslide/.code=\pgfkeysalso{inner/sectionpage=none},
darkcolors/.code=\pgfkeysalso{color/background=dark},
blockbg/.code=\pgfkeysalso{color/block=fill, inner/block=fill},
}
\newcommand{\metropolis@setdefaults}{
\pgfkeys{/metropolis/.cd,
titleformat plain=regular,
}
}
\providecommand{\tikzexternalenable}{}
\providecommand{\tikzexternaldisable}{}
\useinnertheme{metropolis}
\useoutertheme{metropolis}
\usecolortheme{metropolis}
\usefonttheme{metropolis}
\AtEndPreamble{%
\@ifpackageloaded{pgfplots}{%
\RequirePackage{pgfplotsthemetol}
}{}
}
\newcommand{\metroset}[1]{\pgfkeys{/metropolis/.cd,#1}}
\def\metropolis@plaintitleformat#1{#1}
\newcommand{\plain}[2][]{%
\PackageWarning{beamerthememetropolis}{%
The syntax `\plain' may be deprecated in a future version of Metropolis.
Please use a frame with [standout] instead.
}
\begin{frame}[standout]{#1}
\metropolis@plaintitleformat{#2}
\end{frame}
}
\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
\metropolis@setdefaults
\ProcessPgfOptions{/metropolis}
\endinput
%%
%% End of file `beamerthememetropolis.sty'.

View File

@ -0,0 +1,123 @@
%%
%% This is file `pgfplotsthemetol.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% pgfplotsthemetol.dtx (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% 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{pgfplotsthemetol}
[2017/01/23 PGFplots colors based on Paul Tol's SRON technical note]
\definecolor{TolDarkPurple}{HTML}{332288}
\definecolor{TolDarkBlue}{HTML}{6699CC}
\definecolor{TolLightBlue}{HTML}{88CCEE}
\definecolor{TolLightGreen}{HTML}{44AA99}
\definecolor{TolDarkGreen}{HTML}{117733}
\definecolor{TolDarkBrown}{HTML}{999933}
\definecolor{TolLightBrown}{HTML}{DDCC77}
\definecolor{TolDarkRed}{HTML}{661100}
\definecolor{TolLightRed}{HTML}{CC6677}
\definecolor{TolLightPink}{HTML}{AA4466}
\definecolor{TolDarkPink}{HTML}{882255}
\definecolor{TolLightPurple}{HTML}{AA4499}
\pgfplotscreateplotcyclelist{mbarplot cycle}{%
{draw=TolDarkBlue, fill=TolDarkBlue!70},
{draw=TolLightBrown, fill=TolLightBrown!70},
{draw=TolLightGreen, fill=TolLightGreen!70},
{draw=TolDarkPink, fill=TolDarkPink!70},
{draw=TolDarkPurple, fill=TolDarkPurple!70},
{draw=TolDarkRed, fill=TolDarkRed!70},
{draw=TolDarkBrown, fill=TolDarkBrown!70},
{draw=TolLightRed, fill=TolLightRed!70},
{draw=TolLightPink, fill=TolLightPink!70},
{draw=TolLightPurple, fill=TolLightPurple!70},
{draw=TolLightBlue, fill=TolLightBlue!70},
{draw=TolDarkGreen, fill=TolDarkGreen!70},
}
\pgfplotscreateplotcyclelist{mlineplot cycle}{%
{TolDarkBlue, mark=*, mark size=1.5pt},
{TolLightBrown, mark=square*, mark size=1.3pt},
{TolLightGreen, mark=triangle*, mark size=1.5pt},
{TolDarkBrown, mark=diamond*, mark size=1.5pt},
}
\pgfplotsset{
compat=1.9,
mlineplot/.style={
mbaseplot,
xmajorgrids=true,
ymajorgrids=true,
major grid style={dotted},
axis x line=bottom,
axis y line=left,
legend style={
cells={anchor=west},
draw=none
},
cycle list name=mlineplot cycle,
},
mbarplot base/.style={
mbaseplot,
bar width=6pt,
axis y line*=none,
},
mbarplot/.style={
mbarplot base,
ybar,
xmajorgrids=false,
ymajorgrids=true,
area legend,
legend image code/.code={%
\draw[#1] (0cm,-0.1cm) rectangle (0.15cm,0.1cm);
},
cycle list name=mbarplot cycle,
},
horizontal mbarplot/.style={
mbarplot base,
xmajorgrids=true,
ymajorgrids=false,
xbar stacked,
area legend,
legend image code/.code={%
\draw[#1] (0cm,-0.1cm) rectangle (0.15cm,0.1cm);
},
cycle list name=mbarplot cycle,
},
mbaseplot/.style={
legend style={
draw=none,
fill=none,
cells={anchor=west},
},
x tick label style={
font=\footnotesize
},
y tick label style={
font=\footnotesize
},
legend style={
font=\footnotesize
},
major grid style={
dotted,
},
axis x line*=bottom,
},
disable thousands separator/.style={
/pgf/number format/.cd,
1000 sep={}
},
}
\endinput
%%
%% End of file `pgfplotsthemetol.sty'.

View File

@ -0,0 +1,13 @@
\definecolor{green}{cmyk}{1.0,0,0.6,0} % KIT 100% green
\definecolor{lightgreen}{cmyk}{0.7,0,0.42,0} % KIT 70% green
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{normal text}{fg=black}
\setbeamercolor{alerted text}{fg=green}
\setbeamercolor{section in toc}{fg=green}
\setbeamercolor{itemize item}{fg=lightgreen}
\setbeamercolor{itemize subitem}{fg=lightgreen}
\setbeamercolor{itemize subsubitem}{fg=lightgreen}
\setbeamercolor{enumerate item}{fg=lightgreen}
\setbeamercolor{enumerate subitem}{fg=lightgreen}
\setbeamercolor{enumerate subsubitem}{fg=lightgreen}

View File

@ -0,0 +1,18 @@
\setbeamercolor{background canvas}{bg=black}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{alerted text}{fg=gray}
\setbeamercolor{section in toc}{use=alerted text}
\setbeamercolor{box title}{use=alerted text}
\setbeamercolor{block title}{fg=gray}
\setbeamercolor{block title alerted}{fg=red}
\setbeamercolor{block title example}{use=block title}
\setbeamercolor{itemize item}{fg=darkgray}
\setbeamercolor{itemize subitem}{use=itemize item}
\setbeamercolor{itemize subsubitem}{use=itemize item}
\setbeamercolor{enumerate item}{fg=gray}
\setbeamercolor{enumerate subitem}{use=enumerate item}
\setbeamercolor{enumerate subsubitem}{use=enumerate item}

105
Naked/beamerthemenaked.sty Normal file
View File

@ -0,0 +1,105 @@
\usepackage{tikz}
\setbeamertemplate{frametitle}{} % no titles
\setbeamertemplate{navigation symbols}{\transfade[duration=0.3]} % no navigation symbols
% default colors (black on white)
\definecolor{darkgray}{cmyk}{0.7,0.7,0.7,0}
\definecolor{gray}{cmyk}{0.3,0.3,0.3,0}
\definecolor{lightgray}{cmyk}{0.1,0.1,0.1,0}
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{normal text}{fg=black}
\setbeamercolor{alerted text}{fg=gray}
\setbeamercolor{section in toc}{fg=gray}
\setbeamercolor{box title}{fg=gray}
\setbeamercolor{block title}{bg=lightgray,fg=black}
\setbeamercolor{block title alerted}{use=block title,fg=red}
\setbeamercolor{block title example}{use=block title}
\setbeamercolor{caption name}{fg=gray}
\setbeamercolor{description item}{fg=gray}
\setbeamercolor{itemize item}{fg=gray}
\setbeamercolor{itemize subitem}{fg=gray}
\setbeamercolor{itemize subsubitem}{fg=gray}
\setbeamercolor{enumerate item}{fg=darkgray}
\setbeamercolor{enumerate subitem}{fg=darkgray}
\setbeamercolor{enumerate subsubitem}{fg=darkgray}
% default font choices
\usepackage{venturis}
\renewcommand{\tiny}{\fontsize{7pt}{8pt}\selectfont}
\renewcommand{\scriptsize}{\fontsize{9pt}{12pt}\selectfont}
\renewcommand{\footnotesize}{\fontsize{10pt}{12pt}\selectfont}
\renewcommand{\small}{\fontsize{12pt}{18pt}\selectfont}
\renewcommand{\normalsize}{\fontsize{14pt}{18pt}\selectfont}
\renewcommand{\large}{\fontsize{16pt}{24pt}\selectfont}
\renewcommand{\Large}{\fontsize{24pt}{37pt}\selectfont}
\renewcommand{\LARGE}{\fontsize{36pt}{48pt}\selectfont}
\renewcommand{\huge}{\fontsize{48pt}{54pt}\selectfont}
\renewcommand{\Huge}{\fontsize{80pt}{96pt}\selectfont}
\setbeamerfont{enumerate item}{size=\LARGE}
\setbeamerfont*{quote}{size=\large,shape=\itshape,series=\bfseries}
\setbeamerfont{word frame}{size=\Huge}
\setbeamertemplate{quote begin}{\begin{tikzpicture}[remember picture,overlay]
\node[text opacity=0.2,xshift=2cm] at (current page.west) {\fontfamily{ptm}\fontsize{400pt}{96pt}\selectfont ''};
\end{tikzpicture}}
\setbeamertemplate{quote end}{}
\setbeamertemplate{blocks}[rounded]
\setbeamertemplate{title page}
{
% background image on title page:
% \begin{tikzpicture}[overlay]
% \node[inner sep=0pt] at (5.39,-4.45) {\includegraphics[width=1.01\paperwidth]{background_c3}};
% \end{tikzpicture}
~
\vskip2cm
{\Large\inserttitle} \\
\insertsubtitle
\vskip1.0cm\par
{\small \insertauthor} \par
{\small \insertinstitute} \par
{\small \insertdate}
}
%%% An imageframe has one fullscreen image as background
%%% and maybe some text on top.
\newenvironment{imageframe}[1]
{
\setbeamertemplate{background}{%
\parbox[c][\paperheight]{\paperwidth}{%
\includegraphics[width=\paperwidth,height=\paperheight]{#1}
}}
\begin{frame}
\color{white}
}{\end{frame}}
%%% A wordframe has one word (or few) big and centered
\newenvironment{wordframe}
{
\begin{frame}
\bf\usebeamerfont{word frame}
}{\end{frame}}
%%% A defnframe defines a word or phrase
\newenvironment{defnframe}[1]
{
\begin{frame}
\usebeamerfont{title}\usebeamercolor[fg]{box title}\Large #1: \\
\vskip0.7cm
\usebeamercolor[fg]{normal text}\Large\itshape
}{\end{frame}}
\newcommand{\emptyslide}{\begin{frame}[plain]\end{frame}}

View File

@ -0,0 +1,155 @@
% Vertex beamer theme
\ProvidesPackage{beamerthemevertex}[2014/03/31]
\mode<presentation>
% Process options
\newif\if@simplefootline\@simplefootlinefalse
\DeclareOption{simplefootline}{\@simplefootlinetrue}
\ProcessOptions
% Table of contents
\useoutertheme[subsection=false,shadow]{miniframes}
\setbeamertemplate{section in toc}[sections numbered]
\setbeamertemplate{subsection in toc}[subsections numbered]
% Itemize
\setbeamertemplate{itemize item}{→}
\setbeamertemplate{itemize subitem}{→}
\setbeamertemplate{itemize subsubitem}{→}
\setlength{\parskip}{0.5em}
% Colors
\definecolor{vertexDarkGrey}{rgb}{0.3019607844,0.2803921571,0.258823530}
\definecolor{vertexLightGrey}{rgb}{0.833333333,0.8117647064,0.790196078}
\setbeamercolor{normal text}{fg=vertexDarkGrey}
\setbeamercolor{math text}{parent=normal text}
\setbeamercolor{structure}{fg=vertexDarkGrey}
\setbeamercolor{palette1}{fg=white, bg=vertexDarkGrey}
\setbeamercolor{palette2}{fg=vertexDarkGrey,bg=vertexLightGrey}
\setbeamercolor{title page}{parent=palette2}
\setbeamercolor{title}{parent=normal text}
\setbeamercolor{subtitle}{parent=normal text}
\setbeamercolor{institute}{parent=normal text}
\setbeamercolor{frametitle}{parent=palette1}
\setbeamercolor{block title}{parent=palette1}
\setbeamercolor{block body}{parent=palette2}
\setbeamercolor{block title example}{parent=palette2}
\setbeamercolor{block body example}{parent=palette2}
% Fonts
\usepackage{fontspec}%
\usefonttheme{professionalfonts}
\usepackage{unicode-math}
\newfontfamily\Light{Source Sans Pro Light}%
\newfontfamily\Regular{Source Sans Pro}%
\newfontfamily\Bold{Source Sans Pro Bold}%
\setsansfont{Source Sans Pro}%
\setmonofont[Scale=MatchLowercase]{Source Code Pro}%
\setmathfont{Latin Modern Math}
\setbeamerfont{title}{family=\Light,size=\fontsize{30}{30}}
\setbeamerfont{subtitle}{family=\Light,size=\fontsize{18}{20}}
\setbeamerfont{date}{size=\fontsize{10}{12}}
\setbeamerfont{author}{size=\fontsize{16}{18}}
\setbeamerfont{institute}{size=\fontsize{14}{16}}
\setbeamerfont{section title}{size=\LARGE}
\setbeamerfont{frametitle}{family=\Regular,size=\Large}
\setbeamerfont{block title}{family=\Regular,size=\large}
\setbeamerfont{caption name}{family=\Regular}
% Titlepage
\def\maketitle{\ifbeamer@inframe\titlepage\else\frame[plain]{\titlepage}\fi}
\def\titlepage{\usebeamertemplate{title page}}
\setbeamertemplate{title page}
{%
\begin{minipage}[b][\paperheight]{\textwidth}
\centering%
\begin{beamercolorbox}[wd=\paperwidth,ht=12em,dp=2em]{title page}%
\centering%
\ifx\inserttitle\@empty%
\else%
{\usebeamerfont{title}\inserttitle\par}%
\fi%
\ifx\insertsubtitle\@empty%
\else%
\vspace{6mm}
{\usebeamerfont{subtitle}\insertsubtitle\par}%
\fi%
\end{beamercolorbox}%
\ifx\insertauthor\@empty%
\else%
\vspace*{5mm}%
{\usebeamerfont{author}\insertauthor\par}%
\fi%
\ifx\insertinstitute\@empty%
\else%
\vspace*{5mm}%
{\usebeamerfont{institute}\insertinstitute\par}%
\fi%
\vfill
\ifx\insertdate\@empty%
\else%
{\usebeamerfont{date}\usebeamercolor[fg]{date}\insertdate\par}%
\fi%
\vspace{10mm}%
\end{minipage}
}
% Frametitle
\setbeamertemplate{frametitle}
{%
\nointerlineskip % This one's tricky
\begin{beamercolorbox}[wd=\paperwidth,leftskip=0.3cm,rightskip=0.3cm,ht=3ex,dp=1.5ex]{frametitle}
\usebeamerfont{frametitle}{\setbeamercolor{math text}{parent=palette1}\insertframetitle}%
\end{beamercolorbox}
}
% Footline
\usenavigationsymbolstemplate{}
\setbeamertemplate{footline}
{%
\leavevmode%
\if@simplefootline%
\hfill
\else%
\begin{beamercolorbox}[wd=.2\paperwidth, ht=1.8em, dp=1em, left, leftskip=1em]{normal text}%
\insertshortauthor%
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.6\paperwidth, ht=1.8em, dp=1em, center]{}%
\insertshorttitle%
\end{beamercolorbox}%
\fi%
\begin{beamercolorbox}[wd=.2\paperwidth, ht=1.8em, dp=1em, right, rightskip=1em]{}%
\insertframenumber{} / \inserttotalframenumber%
\end{beamercolorbox}%
}
% Blocks
\setbeamertemplate{block begin}
{%
\setbeamercolor{item}{parent=block body}
\par\vskip\medskipamount%
\begin{beamercolorbox}[sep=.5ex,dp=0.6ex,leftskip=0.5ex,rightskip=0.5ex]{block title}
\usebeamerfont*{block title}\insertblocktitle%
\end{beamercolorbox}%
{\parskip0pt\par}%
{\nointerlineskip\vskip-0.5pt}%
\usebeamerfont{block body}%
\begin{beamercolorbox}[sep=.5ex,dp=0.4ex,leftskip=0.5ex,rightskip=0.5ex,vmode]{block body}%
}
\setbeamertemplate{block end}
{\end{beamercolorbox}\vskip\smallskipamount}
% Captions
\usepackage{caption}
\captionsetup[figure]{labelformat=empty} % get rid of 'figure:' under figures
\captionsetup[subfigure]{labelformat=empty} % and subfigures
\captionsetup[table]{labelformat=empty} % same for tables
% Headline
\setbeamertemplate{headline}{}
\mode
<all>