📚 The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / CNN-Intro / beamerouterthememetropolis.sty
132931 viewsLicense: OTHER
%%1%% This is file `beamerouterthememetropolis.sty',2%% generated with the docstrip utility.3%%4%% The original source files were:5%%6%% beamerouterthememetropolis.dtx (with options: `package')7%% ---------------------------------------------------------------------------8%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of9%% contributors can be found at10%%11%% https://github.com/matze/mtheme/graphs/contributors12%%13%% and the original template was based on the HSRM theme by Benjamin Weiss.14%%15%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.016%% International License (https://creativecommons.org/licenses/by-sa/4.0/).17%% ---------------------------------------------------------------------------18\NeedsTeXFormat{LaTeX2e}19\ProvidesPackage{beamerouterthememetropolis}[2017/01/23 Metropolis outer theme]20\RequirePackage{etoolbox}21\RequirePackage{calc}22\RequirePackage{pgfopts}23\pgfkeys{24/metropolis/outer/numbering/.cd,25.is choice,26none/.code=\setbeamertemplate{frame numbering}[none],27counter/.code=\setbeamertemplate{frame numbering}[counter],28fraction/.code=\setbeamertemplate{frame numbering}[fraction],29}30\pgfkeys{31/metropolis/outer/progressbar/.cd,32.is choice,33none/.code={%34\setbeamertemplate{headline}[plain]35\setbeamertemplate{frametitle}[plain]36\setbeamertemplate{footline}[plain]37},38head/.code={\pgfkeys{/metropolis/outer/progressbar=none}39\addtobeamertemplate{headline}{}{%40\usebeamertemplate*{progress bar in head/foot}41}42},43frametitle/.code={\pgfkeys{/metropolis/outer/progressbar=none}44\addtobeamertemplate{frametitle}{}{%45\usebeamertemplate*{progress bar in head/foot}46}47},48foot/.code={\pgfkeys{/metropolis/outer/progressbar=none}49\addtobeamertemplate{footline}{}{%50\usebeamertemplate*{progress bar in head/foot}%51}52},53}54\newcommand{\metropolis@outer@setdefaults}{55\pgfkeys{/metropolis/outer/.cd,56numbering=counter,57progressbar=none,58}59}60\setbeamertemplate{navigation symbols}{}61\defbeamertemplate{frame footer}{none}{}62\defbeamertemplate{frame footer}{custom}[1]{ #1 }63\defbeamertemplate{frame numbering}{none}{}64\defbeamertemplate{frame numbering}{counter}{\insertframenumber}65\defbeamertemplate{frame numbering}{fraction}{66\insertframenumber/\inserttotalframenumber67}68\defbeamertemplate{headline}{plain}{}69\defbeamertemplate{footline}{plain}{%70\begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%71\usebeamerfont{page number in head/foot}%72\usebeamertemplate*{frame footer}73\hfill%74\usebeamertemplate*{frame numbering}75\end{beamercolorbox}%76}77\newlength{\metropolis@frametitle@padding}78\setlength{\metropolis@frametitle@padding}{2.2ex}79\newcommand{\metropolis@frametitlestrut@start}{80\rule{0pt}{\metropolis@frametitle@padding +%81\totalheightof{%82\ifcsdef{metropolis@frametitleformat}{\metropolis@frametitleformat X}{X}%83}%84}%85}86\newcommand{\metropolis@frametitlestrut@end}{87\rule[-\metropolis@frametitle@padding]{0pt}{\metropolis@frametitle@padding}88}89\defbeamertemplate{frametitle}{plain}{%90\nointerlineskip%91\begin{beamercolorbox}[%92wd=\paperwidth,%93sep=0pt,%94leftskip=\metropolis@frametitle@padding,%95rightskip=\metropolis@frametitle@padding,%96]{frametitle}%97\metropolis@frametitlestrut@start%98\insertframetitle%99\nolinebreak%100\metropolis@frametitlestrut@end%101\end{beamercolorbox}%102}103\setbeamertemplate{frametitle continuation}{%104\usebeamerfont{frametitle}105\romannumeral \insertcontinuationcount106}107\newlength{\metropolis@progressinheadfoot}108\newlength{\metropolis@progressinheadfoot@linewidth}109\setlength{\metropolis@progressinheadfoot@linewidth}{0.4pt}110\setbeamertemplate{progress bar in head/foot}{111\nointerlineskip112\setlength{\metropolis@progressinheadfoot}{%113\paperwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%114}%115\begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot}116\tikzexternaldisable%117\begin{tikzpicture}118\fill[bg] (0,0) rectangle (\paperwidth, \metropolis@progressinheadfoot@linewidth);119\fill[fg] (0,0) rectangle (\metropolis@progressinheadfoot, \metropolis@progressinheadfoot@linewidth);120\end{tikzpicture}%121\tikzexternalenable%122\end{beamercolorbox}123}124\AtBeginDocument{%125\apptocmd{\appendix}{%126\pgfkeys{%127/metropolis/outer/.cd,128numbering=none,129progressbar=none}130}{}{}131}132\metropolis@outer@setdefaults133\ProcessPgfPackageOptions{/metropolis/outer}134\endinput135%%136%% End of file `beamerouterthememetropolis.sty'.137138139