summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-12-05 23:05:44 +0000
committerKarl Berry <karl@freefriends.org>2015-12-05 23:05:44 +0000
commit85ee8c199f2c14ef10dd75bd71157faa5cb51bf6 (patch)
tree4aa56eb66743945fdf28f15849d291743f359aee
parent5384f92b5a44dd9e84f1bab69420edf32e99c696 (diff)
beamertheme-metropolis (6dec15)
git-svn-id: svn://tug.org/texlive/trunk@39020 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md61
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.bib43
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.pdfbin0 -> 61552 bytes
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex312
-rw-r--r--Master/texmf-dist/doc/latex/beamertheme-metropolis/metropolistheme.pdfbin0 -> 103976 bytes
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx230
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx166
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx598
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx268
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx219
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins71
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx532
-rw-r--r--Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx190
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty126
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty112
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty345
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty158
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty113
-rw-r--r--Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty123
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check5
-rwxr-xr-xMaster/tlpkg/libexec/ctan2tds4
-rw-r--r--Master/tlpkg/tlpsrc/beamertheme-metropolis.tlpsrc0
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
23 files changed, 3674 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md b/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md
new file mode 100644
index 00000000000..1ad8ebaa16f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/beamertheme-metropolis/README.md
@@ -0,0 +1,61 @@
+## Metropolis
+
+**NOTICE: The package name changed from *m* to *metropolis*!**
+
+Metropolis is a simple, modern Beamer theme suitable for anyone to use. It tries
+to minimize noise and maximize space for content; the only visual flourish it
+offers is an (optional) progress bar added to each slide. The core design
+principles of the theme were described in a blog post
+[here](http://bloerg.net/2014/09/20/a-modern-beamer-theme.html).
+
+Not convinced? Have a look at the [demo slides](demo/demo.pdf).
+
+![Sample](http://i.imgur.com/Bxu52fz.png)
+
+
+## Installation
+
+Installing Metropolis, like any Beamer theme, involves four easy steps:
+
+1. **Download the source** with a `git clone` of the [Metropolis repository](https://github.com/matze/mtheme) or as a [zip archive](https://github.com/matze/mtheme/archive/master.zip) of the latest development version.
+
+2. **Compile the style files** by running `make sty` inside the downloaded
+ directory. (Or run LaTeX directly on `source/metropolistheme.ins`.)
+
+3. **Move the resulting `*.sty` files** to the folder containing your presentation. To use Metropolis with many presentations, run `make install` or move the `*.sty` files to a folder in your TeX path instead (might require `sudo` rights).
+
+4. **Use the theme for your presentation** by declaring `\usetheme{metropolis}` in
+ the preamble of your Beamer document.
+
+
+## Usage
+
+The following code shows a minimal example of a Beamer presentation using
+Metropolis.
+
+```latex
+\documentclass{beamer}
+\usetheme{metropolis} % Use metropolis theme
+\title{A minimal example}
+\date{\today}
+\author{Matthias Vogelgesang}
+\institute{Centre for Modern Beamer Themes}
+\begin{document}
+ \maketitle
+ \section{First Section}
+ \begin{frame}{First Frame}
+ Hello, world!
+ \end{frame}
+\end{document}
+```
+
+Detailed information on using Metropolis can be found in the [manual (PDF)](doc/metropolistheme.pdf).
+
+
+## License
+
+The theme itself is licensed under a [Creative Commons Attribution-ShareAlike
+4.0 International License](http://creativecommons.org/licenses/by-sa/4.0/). This
+means that if you change the theme and re-distribute it, you *must* retain the
+copyright notice header and license it under the same CC-BY-SA license. This
+does not affect the presentation that you create with the theme.
diff --git a/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.bib b/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.bib
new file mode 100644
index 00000000000..6cf6bad32bf
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.bib
@@ -0,0 +1,43 @@
+@article{Knuth92,
+ author = "D.E. Knuth",
+ title = "Two notes on notation",
+ journal = "Amer. Math. Monthly",
+ volume = "99",
+ year = "1992",
+ pages = "403--422",
+}
+
+@book{ConcreteMath,
+ author = "R.L. Graham and D.E. Knuth and O. Patashnik",
+ title = "Concrete mathematics",
+ publisher = "Addison-Wesley",
+ address = "Reading, MA",
+ year = "1989"
+}
+
+@unpublished{Simpson,
+ author = "H. Simpson",
+ title = "Proof of the {R}iemann {H}ypothesis",
+ note = "preprint (2003), available at
+ \texttt{http://www.math.drofnats.edu/riemann.ps}",
+ year = "2003"
+}
+
+@incollection{Er01,
+ author = "P. Erd{\H o}s",
+ title = "A selection of problems and results in combinatorics",
+ booktitle = "Recent trends in combinatorics (Matrahaza, 1995)",
+ publisher = "Cambridge Univ. Press",
+ address = "Cambridge",
+ pages = "1--6",
+ year = "1995"
+}
+@article{greenwade93,
+ author = "George D. Greenwade",
+ title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
+ year = "1993",
+ journal = "TUGBoat",
+ volume = "14",
+ number = "3",
+ pages = "342--351"
+}
diff --git a/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.pdf b/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.pdf
new file mode 100644
index 00000000000..49a32cb8fd7
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex b/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex
new file mode 100644
index 00000000000..50eb7fa5a4e
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/beamertheme-metropolis/demo.tex
@@ -0,0 +1,312 @@
+\documentclass[10pt]{beamer}
+
+\usetheme{metropolis}
+
+\usepackage{booktabs}
+\usepackage[scale=2]{ccicons}
+
+\usepackage{pgfplots}
+\usepgfplotslibrary{dateplot}
+
+\usepackage{xspace}
+\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
+
+\title{Metropolis}
+\subtitle{A modern beamer theme}
+\date{\today}
+\author{Matthias Vogelgesang}
+\institute{Center for modern beamer themes}
+% \titlegraphic{\hfill\includegraphics[height=1.5cm]{logo/logo}}
+
+\begin{document}
+
+\maketitle
+
+\begin{frame}{Table of contents}
+ \setbeamertemplate{section in toc}[sections numbered]
+ \tableofcontents[hideallsubsections]
+\end{frame}
+
+\section{Introduction}
+
+\begin{frame}[fragile]{Metropolis}
+
+ The \themename theme is a Beamer theme with minimal visual noise
+ inspired by the \href{https://github.com/hsrmbeamertheme/hsrmbeamertheme}{\textsc{hsrm} Beamer
+ Theme} by Benjamin Weiss.
+
+ Enable the theme by loading
+
+ \begin{verbatim} \documentclass{beamer}
+ \usetheme{metropolis}\end{verbatim}
+
+ Note, that you have to have Mozilla's \emph{Fira Sans} font and XeTeX
+ installed to enjoy this wonderful typography.
+\end{frame}
+\begin{frame}[fragile]{Sections}
+ Sections group slides of the same topic
+
+ \begin{verbatim} \section{Elements}\end{verbatim}
+
+ for which \themename provides a nice progress indicator \ldots
+\end{frame}
+
+\section{Titleformats}
+
+\begin{frame}{Metropolis titleformats}
+ \themename supports 4 different titleformats:
+ \begin{itemize}
+ \item Regular
+ \item \textsc{Smallcaps}
+ \item \textsc{allsmallcaps}
+ \item ALLCAPS
+ \end{itemize}
+ They can either be set at once for every title type or individually.
+\end{frame}
+
+{
+\metroset{titleformat frame=smallcaps}
+\begin{frame}{Small caps}
+ This frame uses the \texttt{smallcaps} titleformat.
+
+ \begin{alertblock}{Potential Problems}
+ Be aware, that not every font supports small caps. If for example you typeset your presentation with pdfTeX and the Computer Modern Sans Serif font, every text in smallcaps will be typeset with the Computer Modern Serif font instead.
+ \end{alertblock}
+\end{frame}
+}
+
+{
+\metroset{titleformat frame=allsmallcaps}
+\begin{frame}{All small caps}
+ This frame uses the \texttt{allsmallcaps} titleformat.
+
+ \begin{alertblock}{Potential problems}
+ As this titleformat also uses smallcaps you face the same problems as with the \texttt{smallcaps} titleformat. Additionally this format can cause some other problems. Please refer to the documentation if you consider using it.
+
+ As a rule of thumb: Just use it for plaintext-only titles.
+ \end{alertblock}
+\end{frame}
+}
+
+{
+\metroset{titleformat frame=allcaps}
+\begin{frame}{All caps}
+ This frame uses the \texttt{allcaps} titleformat.
+
+ \begin{alertblock}{Potential Problems}
+ This titleformat is not as problematic as the \texttt{allsmallcaps} format, but basically suffers from the same deficiencies. So please have a look at the documentation if you want to use it.
+ \end{alertblock}
+\end{frame}
+}
+
+\section{Elements}
+
+\begin{frame}[fragile]{Typography}
+ \begin{verbatim}The theme provides sensible defaults to
+\emph{emphasize} text, \alert{accent} parts
+or show \textbf{bold} results.\end{verbatim}
+
+ \begin{center}becomes\end{center}
+
+ The theme provides sensible defaults to \emph{emphasize} text,
+ \alert{accent} parts or show \textbf{bold} results.
+\end{frame}
+
+\begin{frame}{Font feature test}
+ \begin{itemize}
+ \item Regular
+ \item \textit{Italic}
+ \item \textsc{SmallCaps}
+ \item \textbf{Bold}
+ \item \textbf{\textit{Bold Italic}}
+ \item \textbf{\textsc{Bold SmallCaps}}
+ \item \texttt{Monospace}
+ \item \texttt{\textit{Monospace Italic}}
+ \item \texttt{\textbf{Monospace Bold}}
+ \item \texttt{\textbf{\textit{Monospace Bold Italic}}}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}{Lists}
+ \begin{columns}[T,onlytextwidth]
+ \column{0.33\textwidth}
+ Items
+ \begin{itemize}
+ \item Milk \item Eggs \item Potatos
+ \end{itemize}
+
+ \column{0.33\textwidth}
+ Enumerations
+ \begin{enumerate}
+ \item First, \item Second and \item Last.
+ \end{enumerate}
+
+ \column{0.33\textwidth}
+ Descriptions
+ \begin{description}
+ \item[PowerPoint] Meeh. \item[Beamer] Yeeeha.
+ \end{description}
+ \end{columns}
+\end{frame}
+\begin{frame}{Animation}
+ \begin{itemize}[<+- | alert@+>]
+ \item \alert<4>{This is\only<4>{ really} important}
+ \item Now this
+ \item And now this
+ \end{itemize}
+\end{frame}
+\begin{frame}{Figures}
+ \begin{figure}
+ \newcounter{density}
+ \setcounter{density}{20}
+ \begin{tikzpicture}
+ \def\couleur{alerted text.fg}
+ \path[coordinate] (0,0) coordinate(A)
+ ++( 90:5cm) coordinate(B)
+ ++(0:5cm) coordinate(C)
+ ++(-90:5cm) coordinate(D);
+ \draw[fill=\couleur!\thedensity] (A) -- (B) -- (C) --(D) -- cycle;
+ \foreach \x in {1,...,40}{%
+ \pgfmathsetcounter{density}{\thedensity+20}
+ \setcounter{density}{\thedensity}
+ \path[coordinate] coordinate(X) at (A){};
+ \path[coordinate] (A) -- (B) coordinate[pos=.10](A)
+ -- (C) coordinate[pos=.10](B)
+ -- (D) coordinate[pos=.10](C)
+ -- (X) coordinate[pos=.10](D);
+ \draw[fill=\couleur!\thedensity] (A)--(B)--(C)-- (D) -- cycle;
+ }
+ \end{tikzpicture}
+ \caption{Rotated square from
+ \href{http://www.texample.net/tikz/examples/rotated-polygons/}{texample.net}.}
+ \end{figure}
+\end{frame}
+\begin{frame}{Tables}
+ \begin{table}
+ \caption{Largest cities in the world (source: Wikipedia)}
+ \begin{tabular}{lr}
+ \toprule
+ City & Population\\
+ \midrule
+ Mexico City & 20,116,842\\
+ Shanghai & 19,210,000\\
+ Peking & 15,796,450\\
+ Istanbul & 14,160,467\\
+ \bottomrule
+ \end{tabular}
+ \end{table}
+\end{frame}
+\begin{frame}{Blocks}
+ Three different block environments are pre-defined and may be styled with an
+ optional background color.
+
+ \begin{columns}[T,onlytextwidth]
+ \column{0.5\textwidth}
+ \begin{block}{Default}
+ Block content.
+ \end{block}
+
+ \begin{alertblock}{Alert}
+ Block content.
+ \end{alertblock}
+
+ \begin{exampleblock}{Example}
+ Block content.
+ \end{exampleblock}
+
+ \column{0.5\textwidth}
+
+ \metroset{block=fill}
+
+ \begin{block}{Default}
+ Block content.
+ \end{block}
+
+ \begin{alertblock}{Alert}
+ Block content.
+ \end{alertblock}
+
+ \begin{exampleblock}{Example}
+ Block content.
+ \end{exampleblock}
+
+ \end{columns}
+\end{frame}
+\begin{frame}{Math}
+ \begin{equation*}
+ e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n
+ \end{equation*}
+\end{frame}
+\begin{frame}{Line plots}
+ \begin{figure}
+ \begin{tikzpicture}
+ \begin{axis}[
+ mlineplot,
+ width=0.9\textwidth,
+ height=6cm,
+ ]
+
+ \addplot {sin(deg(x))};
+ \addplot+[samples=100] {sin(deg(2*x))};
+
+ \end{axis}
+ \end{tikzpicture}
+ \end{figure}
+\end{frame}
+\begin{frame}{Bar charts}
+ \begin{figure}
+ \begin{tikzpicture}
+ \begin{axis}[
+ mbarplot,
+ xlabel={Foo},
+ ylabel={Bar},
+ width=0.9\textwidth,
+ height=6cm,
+ ]
+
+ \addplot plot coordinates {(1, 20) (2, 25) (3, 22.4) (4, 12.4)};
+ \addplot plot coordinates {(1, 18) (2, 24) (3, 23.5) (4, 13.2)};
+ \addplot plot coordinates {(1, 10) (2, 19) (3, 25) (4, 15.2)};
+
+ \legend{lorem, ipsum, dolor}
+
+ \end{axis}
+ \end{tikzpicture}
+ \end{figure}
+\end{frame}
+\begin{frame}{Quotes}
+ \begin{quote}
+ Veni, Vidi, Vici
+ \end{quote}
+\end{frame}
+
+\begin{frame}{References}
+ Some references to showcase [allowframebreaks] \cite{knuth92,ConcreteMath,Simpson,Er01,greenwade93}
+\end{frame}
+
+\section{Conclusion}
+
+\begin{frame}{Summary}
+
+ Get the source of this theme and the demo presentation from
+
+ \begin{center}\url{github.com/matze/mtheme}\end{center}
+
+ The theme \emph{itself} is licensed under a
+ \href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons
+ Attribution-ShareAlike 4.0 International License}.
+
+ \begin{center}\ccbysa\end{center}
+
+\end{frame}
+
+\plain{Questions?}
+
+\begin{frame}[allowframebreaks]{References}
+
+ \bibliography{demo}
+ \bibliographystyle{abbrv}
+
+\end{frame}
+
+\end{document}
diff --git a/Master/texmf-dist/doc/latex/beamertheme-metropolis/metropolistheme.pdf b/Master/texmf-dist/doc/latex/beamertheme-metropolis/metropolistheme.pdf
new file mode 100644
index 00000000000..9e14e875e22
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/beamertheme-metropolis/metropolistheme.pdf
Binary files differ
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx
new file mode 100644
index 00000000000..1d5f50e2534
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamercolorthememetropolis.dtx
@@ -0,0 +1,230 @@
+% \iffalse meta-comment -------------------------------------------------------
+% 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/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<driver> \ProvidesFile{beamercolorthememetropolis.dtx}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamercolorthememetropolis}[2015/12/04 Metropolis color theme]
+%</package>
+%<driver> \documentclass{ltxdoc}
+%<driver> \usepackage{beamercolorthememetropolis}
+%<driver> \begin{document}
+%<driver> \DocInput{beamercolorthememetropolis.dtx}
+%<driver> \end{document}
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+%
+% \subsection{\textsc{metropolis} color theme}
+%
+% Load required packages.
+% \begin{macrocode}
+\RequirePackage{pgfopts}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Options}
+%
+% \begin{macro}{block}
+% This option controls whether the blocks are filled or transparent.
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/color/block/.cd,
+ .is choice,
+ transparent/.code=\@metropolis@block@transparent,
+ fill/.code=\@metropolis@block@fill,
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{colors}
+% Defines whether the background shall be dark and the foreground be light or
+% vice versa
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/color/background/.cd,
+ .is choice,
+ dark/.code=\@metropolis@colors@dark,
+ light/.code=\@metropolis@colors@light,
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@metropolis@color@setdefaults}
+% Set default values for color theme options.
+% \begin{macrocode}
+\newcommand{\@metropolis@color@setdefaults}{
+ \pgfkeys{/metropolis/color/.cd,
+ background=light,
+ block=transparent,
+ }
+}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \subsubsection{Base colors}
+%
+% \begin{macrocode}
+\definecolor{mDarkBrown}{HTML}{604c38}
+\definecolor{mDarkTeal}{HTML}{23373b}
+\definecolor{mLightBrown}{HTML}{EB811B}
+\definecolor{mLightGreen}{HTML}{14B03D}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Base styles}
+%
+% All colors in the \textsc{metropolis} theme are derived from the definitions
+% of |normal text|, |alerted text|, and |example text|.
+%
+% \begin{macrocode}
+\newcommand{\@metropolis@colors@dark}{
+ \setbeamercolor{normal text}{%
+ fg=black!2,
+ bg=mDarkTeal
+ }
+}
+\newcommand{\@metropolis@colors@light}{
+ \setbeamercolor{normal text}{%
+ fg=mDarkTeal,
+ bg=black!2
+ }
+}
+\setbeamercolor{alerted text}{%
+ fg=mLightBrown
+}
+\setbeamercolor{example text}{%
+ fg=mLightGreen
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Derived colors}
+%
+% The titles and structural elements (e.g. |itemize| bullets) are set in the
+% same color as |normal text|. This would ideally done by setting |normal text|
+% as a parent style, which we do to set |titlelike|, but this doesn't work for
+% |structure| as its foreground is set explicitly in
+% |beamercolorthemedefault.sty|.
+%
+% \begin{macrocode}
+\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}
+% \end{macrocode}
+%
+% The “primary” palette should be used for the most important navigational
+% elements, and possibly of other elements. The \textsc{metropolis} theme uses
+% it for frame titles and slides.
+%
+% \begin{macrocode}
+\setbeamercolor{palette primary}{%
+ use=normal text,
+ fg=normal text.bg,
+ bg=normal text.fg
+}
+\setbeamercolor{frametitle}{%
+ use=palette primary,
+ parent=palette primary
+}
+% \end{macrocode}
+%
+% The \textsc{metropolis} inner or outer themes optionally display progress
+% bars in various locations. Their color is set by |progress bar| but the two
+% different kinds can be customized separately. The horizontal rule on the
+% title page is also set based on the progress bar color and can be customized
+% with |title separator|.
+%
+% \begin{macrocode}
+\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
+}
+% \end{macrocode}
+%
+% Blocks
+%
+% \begin{macrocode}
+\newcommand{\@metropolis@block@transparent}{
+ \setbeamercolor{block title}{use=normal text, parent=normal text}
+}
+\newcommand{\@metropolis@block@fill}{
+ \setbeamercolor{block title}{%
+ use=normal text,
+ fg=normal text.fg,
+ bg=normal text.bg!80!fg
+ }
+}
+\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{block body}{
+ use={block title, normal text},
+ bg=block title.bg!50!normal text.bg
+}
+% \end{macrocode}
+%
+% Footnotes
+%
+% \begin{macrocode}
+\setbeamercolor{footnote}{fg=normal text.fg!90}
+\setbeamercolor{footnote mark}{fg=.}
+% \end{macrocode}
+%
+% Process package options
+%
+% \begin{macrocode}
+\@metropolis@color@setdefaults
+\ProcessPgfPackageOptions{/metropolis/color}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\mode<all>
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx
new file mode 100644
index 00000000000..4c9b4516bd3
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerfontthememetropolis.dtx
@@ -0,0 +1,166 @@
+% \iffalse meta-comment -------------------------------------------------------
+% 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/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<driver> \ProvidesFile{beamerfontthememetropolis.dtx}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamerfontthememetropolis}[2015/12/04 Metropolis font theme]
+%</package>
+%<driver> \documentclass{ltxdoc}
+%<driver> \usepackage{beamerfontthememetropolis}
+%<driver> \begin{document}
+%<driver> \DocInput{beamerfontthememetropolis.dtx}
+%<driver> \end{document}
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+% \subsection{\textsc{metropolis} font theme}
+%
+%
+% Load required packages.
+% \begin{macrocode}
+\RequirePackage{etoolbox}
+\RequirePackage{ifxetex}
+\RequirePackage{ifluatex}
+% \end{macrocode}
+%
+% \subsubsection{Load Fira font}
+% If the presentation is compiled with XeLaTeX or LuaLaTeX the fontspec package
+% will be loaded.
+% \begin{macrocode}
+\ifboolexpr{bool {xetex} or bool {luatex}}{
+ \RequirePackage[no-math]{fontspec}
+% \end{macrocode}
+%
+% To simplify the check whether the |Fira| fonts are installed, a set macros is
+% defined.
+%
+% \begin{macro}{\checkfont}
+% Checks if a font is installed and increases |fontsnotfound| counter if not.
+% \begin{macrocode}
+ \newcounter{fontsnotfound}
+ \newcommand{\checkfont}[1]{%
+ \suppressfontnotfounderror=1%
+ \font\x = "#1" at 10pt
+ \selectfont
+ \ifx\x\nullfont%
+ \stepcounter{fontsnotfound}%
+ \fi%
+ \suppressfontnotfounderror=0%
+ }
+
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\iffontexists}
+% Resets the |fontsnotfound| counter and calls |\checkfont| for each font in
+% the comma separated list in the first argument.
+% \begin{macrocode}
+ \newcommand{\iffontsexist}[3]{%
+ \setcounter{fontsnotfound}{0}%
+ \expandafter\forcsvlist\expandafter%
+ \checkfont\expandafter{#1}%
+ \ifnum\value{fontsnotfound}=0%
+ #2%
+ \else%
+ #3%
+ \fi%
+ }
+% \end{macrocode}
+% \end{macro}
+%
+% Using the previously defined macros it is tried to load the |Fira| fonts.
+% First the default |Fira| name will be tried. Second the |Fira| fonts with
+% the suffix OT -- used by some Linux distributions -- will be tried. If this
+% also fails a warning will be displayed and the standard fonts will be used.
+%
+% \begin{macrocode}
+ \iffontsexist{Fira Sans Light,%
+ Fira Sans Light Italic,%
+ Fira Sans,%
+ Fira Sans Italic}{%
+ \setsansfont[BoldFont={Fira Sans}]{Fira Sans Light}%
+ }{%
+ \iffontsexist{Fira Sans Light OT,%
+ Fira Sans Light Italic OT,%
+ Fira Sans OT,%
+ Fira Sans Italic OT}{%
+ \setsansfont[BoldFont={Fira Sans OT}]{Fira Sans Light OT}%
+ }{%
+ \PackageWarning{beamerthememetropolis}{%
+ Could not find Fira Sans fonts%
+ }
+ }
+ }
+ \iffontsexist{Fira Mono, Fira Mono Bold}{%
+ \setmonofont{Fira Mono}%
+ }{%
+ \iffontsexist{Fira Mono OT, Fira Mono Bold OT}{%
+ \setmonofont{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%
+ }
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{General font definitions}
+%
+% \begin{macrocode}
+\setbeamerfont{title}{size=\Large,%
+ series=\bfseries}
+\setbeamerfont{author}{size=\small}
+\setbeamerfont{date}{size=\small}
+\setbeamerfont{section title}{size=\Large,%
+ series=\bfseries}
+\setbeamerfont{plain 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}
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx
new file mode 100644
index 00000000000..21daf14a7bc
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerinnerthememetropolis.dtx
@@ -0,0 +1,598 @@
+% \iffalse meta-comment -------------------------------------------------------
+% 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/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<driver> \ProvidesFile{beamerinnerthememetropolis.dtx}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamerinnerthememetropolis}[2015/12/04 Metropolis inner theme]
+%</package>
+%<driver> \documentclass{ltxdoc}
+%<driver> \usepackage{beamerinnerthememetropolis}
+%<driver> \begin{document}
+%<driver> \DocInput{beamerinnerthememetropolis.dtx}
+%<driver> \end{document}
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+%
+% \subsection{\textsc{metropolis} inner theme}
+%
+% A |beamer| inner theme dictates the style of the frame elements traditionally
+% set in the ``body'' of each slide. These include:
+%
+% \begin{itemize}
+% \item title, part, and section pages;
+% \item itemize, enumerate, and description environments;
+% \item block environments including theorems and proofs;
+% \item figures and tables; and
+% \item footnotes and plain text.
+% \end{itemize}
+%
+% Load required packages.
+% \begin{macrocode}
+\RequirePackage{etoolbox}
+\RequirePackage{calc}
+\RequirePackage{pgfopts}
+\RequirePackage{tikz}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Options}
+%
+% \begin{macro}{block}
+% This option controls the block style.
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/inner/block/.cd,
+ .is choice,
+ transparent/.code=\setlength{\@metropolis@blockskip}{0ex},
+ fill/.code=\setlength{\@metropolis@blockskip}{1ex},
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{titleformat title}
+% Control the titleformat of the title
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/inner/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\MakeLowercase%
+ \setbeamerfont{title}{shape=\scshape}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat title=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@titleformat\MakeUppercase%
+ \setbeamerfont{title}{shape=\normalfont}
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat title=allcaps can lead to problems%
+ }
+ },
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{titleformat subtitle}
+% Control the titleformat of the subtitle
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/inner/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\MakeLowercase%
+ \setbeamerfont{subtitle}{shape=\scshape}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat subtitle=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@subtitleformat\MakeUppercase%
+ \setbeamerfont{subtitle}{shape=\normalfont}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat subtitle=allcaps can lead to problems%
+ }
+ },
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{titleformat section}
+% Control the titleformat of the section title
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/inner/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%
+ }
+ },
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{sectionpage}
+% The |sectionpage| option defines the behaviour of the sectionpage.
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/inner/sectionpage/.cd,
+ .is choice,
+ none/.code=\@metropolis@sectionpage@none,
+ simple/.code=\@metropolis@sectionpage@simple,
+ progressbar/.code=\@metropolis@sectionpage@progressbar,
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@metropolis@inner@setdefaults}
+% Set default values for inner theme options.
+% \begin{macrocode}
+\newcommand{\@metropolis@inner@setdefaults}{
+ \pgfkeys{/metropolis/inner/.cd,
+ sectionpage=progressbar,
+ block=transparent,
+ titleformat title=regular,
+ titleformat subtitle=regular,
+ titleformat section=regular,
+ }
+}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \subsubsection{Title page}
+%
+% \begin{macro}{\@metropolis@titleformat}
+% Define hooks to change the case format of the titles.
+% \begin{macrocode}
+\def\@metropolis@titleformat#1{#1}
+\def\@metropolis@subtitleformat#1{#1}
+\def\@metropolis@sectiontitleformat#1{#1}
+% \end{macrocode}
+% \end{macro}
+%
+% To make the |\MakeLowercase| and |\MakeUppercase| macros work in the
+% sectiontitle we have to patch |\sectionentry| and |\beamer@section|. This
+% solution was suggested by Enrico Gregorio in an answer to
+% \href{http://tex.stackexchange.com/questions/112526/}{this StackExchange
+% question}.
+%
+% \begin{macrocode}
+\patchcmd{\sectionentry}
+ {\def\insertsectionhead{#2}}
+ {\def\insertsectionhead{\@metropolis@sectiontitleformat{#2}}}
+ {}
+ {\PackageError{beamerinnerthememetropolis}{Patching section title failed}}
+\patchcmd{\beamer@section}
+ {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
+ {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
+ \@metropolis@sectiontitleformat{#1}}}}
+ {}
+ {\PackageError{beamerinnerthememetropolis}{Patching section title failed}}
+% \end{macrocode}
+%
+% \begin{macro}{title page}
+% Template for the title page. Each element is only typset if it is defined
+% by the user. If |\subtitle| is empty, for example, it won't leave a blank
+% space on the title slide.
+% \begin{macrocode}
+\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}
+% \end{macrocode}
+%
+% Beamer's definition of |\insertauthor| is always nonempty, so we have
+% to test another macro initialized by |\author{...}| to see if the user has
+% defined an author. This solution was suggested by Enrico Gregorio in an
+% answer to \href{https://tex.stackexchange.com/questions/241306/}{this
+% Stack Exchange question}.
+%
+% \begin{macrocode}
+ \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}
+}
+% \end{macrocode}
+% \end{macro}%
+%
+% Normal people should use |\maketitle| or |\titlepage| instead of using the
+% |title page| beamer template directly. Beamer already defines these macros,
+% but we patch them here to make the title page |[plain]| by default, remove
+% |\@thanks|, and ensure the title frame number doesn't count.
+%
+% \begin{macro}{\maketitle}
+% \begin{macro}{\titlepage}
+%
+% Inserts the title frame, or causes the current frame to use the
+% |title page| template.
+%
+% \begin{macrocode}
+\def\maketitle{%
+ \ifbeamer@inframe
+ \titlepage
+ \else
+ \frame[plain]{\titlepage}
+ \fi
+}
+\def\titlepage{%
+ \usebeamertemplate{title page}
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{title graphic}
+% Set the title graphic in a zero-height box, so it doesn't change the
+% position of other elements.
+% \begin{macrocode}
+\setbeamertemplate{title graphic}{
+ \vbox to 0pt {
+ \vspace*{2em}
+ \inserttitlegraphic%
+ }%
+ \nointerlineskip%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{title}
+% Set the title on the title page.
+% \begin{macrocode}
+\setbeamertemplate{title}{
+ \raggedright%
+ \linespread{1.0}%
+ \@metropolis@titleformat{\inserttitle}%
+ \par%
+ \vspace*{0.5em}
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{subtitle}
+% Set the subtitle on the title page.
+% \begin{macrocode}
+\setbeamertemplate{subtitle}{
+ \@metropolis@subtitleformat{\insertsubtitle}%
+ \par%
+ \vspace*{0.5em}
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{title separator}
+% Template to set the title graphic in a zero-height box. (It won't
+% change the position of other elements.)
+% \begin{macrocode}
+\setbeamertemplate{title separator}{
+ \begin{tikzpicture}
+ \draw[fg, fill=fg] (0,0) rectangle (\textwidth, 0.4pt);
+ \end{tikzpicture}%
+ \par%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{author}
+% Set the author on the title page.
+% \begin{macrocode}
+\setbeamertemplate{author}{
+ \vspace*{2em}
+ \insertauthor%
+ \par%
+ \vspace*{0.25em}
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{date}
+% Set the date on the title page.
+% \begin{macrocode}
+\setbeamertemplate{date}{
+ \insertdate%
+ \par%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{institute}
+% Set the institute on the title page.
+% \begin{macrocode}
+\setbeamertemplate{institute}{
+ \vspace*{3mm}
+ \insertinstitute%
+ \par%
+}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \subsubsection{Section page}
+%
+% \begin{macro}{section page}
+%
+% Template for the section title slide at the beginning of each section.
+%
+% \begin{macrocode}
+\newcommand{\@metropolis@sectionpage@none}{
+ \AtBeginSection{
+ % intenionally empty
+ }
+}
+\defbeamertemplate{section page}{simple}{
+ \centering
+ \usebeamercolor[fg]{section title}
+ \usebeamerfont{section title}
+ \insertsectionhead\\
+}
+\newcommand{\@metropolis@sectionpage@simple}{
+ \setbeamertemplate{section page}[simple]
+ \AtBeginSection{
+ \ifbeamer@inframe
+ \sectionpage
+ \else
+ \frame[plain,c]{\sectionpage}
+ \fi
+ }
+}
+\defbeamertemplate{section page}{progressbar}{
+ \centering
+ \begin{minipage}{22em}
+ \usebeamercolor[fg]{section title}
+ \usebeamerfont{section title}
+ \insertsectionhead\\[-1ex]
+ \usebeamertemplate*{progress bar in section page}
+ \end{minipage}
+ \par
+}
+\newcommand{\@metropolis@sectionpage@progressbar}{
+ \setbeamertemplate{section page}[progressbar]
+ \AtBeginSection{
+ \ifbeamer@inframe
+ \sectionpage
+ \else
+ \frame[plain,c]{\sectionpage}
+ \fi
+ }
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{progress bar in section page}
+%
+% Template for the progress bar displayed by default on the section page.
+% This code is duplicated in large part in the outer theme's template
+% |progress bar in head/foot|.
+%
+% \begin{macrocode}
+\newlength{\metropolis@progressonsectionpage}
+\setbeamertemplate{progress bar in section page}{
+ \setlength{\metropolis@progressonsectionpage}{%
+ \textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
+ }%
+ \begin{tikzpicture}
+ \draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt);
+ \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressonsectionpage, 0.4pt);
+ \end{tikzpicture}%
+}
+% \end{macrocode}
+%
+% The above code assumes that |\insertframenumber| is less than or equal to
+% |\inserttotalframenumber|. However, this is not true on the first compile;
+% in the absence of an |.aux| file, |\inserttotalframenumber| defaults to 1.
+% This behaviour could cause fatal errors for long presentations, as
+% |\metropolis@progressonsectionpage| would exceed \TeX's maximum length
+% (16383.99999pt, roughly 5.75 metres or 18.9 feet).
+% To avoid this, we increase the default value for |\inserttotalframenumber|;
+% presentations with over 4000 slides will still break on first compile, but
+% users in that situation likely have deeper problems to solve.
+%
+% \begin{macrocode}
+\def\inserttotalframenumber{100}
+% \end{macrocode}
+% \end{macro}
+%
+%
+%
+% \subsubsection{Block environments}
+%
+% Regular block environment
+%
+% \begin{macrocode}
+\newlength{\@metropolis@blockskip}
+\setbeamertemplate{block begin}{%
+ \setlength{\parskip}{\@metropolis@parskip}
+ \vspace*{1ex}
+ \begin{beamercolorbox}[%
+ ht=2.4ex,
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip]{block title}
+ \usebeamerfont*{block title}\insertblocktitle%
+ \end{beamercolorbox}%
+ \vspace*{-1pt}
+ \usebeamerfont{block body}%
+ \begin{beamercolorbox}[%
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip,
+ vmode]{block body}%
+}
+\setbeamertemplate{block end}{%
+ \end{beamercolorbox}
+ \vspace*{0.2ex}
+}
+% \end{macrocode}
+%
+% Alerted block environment
+%
+% \begin{macrocode}
+\setbeamertemplate{block alerted begin}{%
+ \setlength{\parskip}{\@metropolis@parskip}
+ \vspace*{1ex}
+ \begin{beamercolorbox}[%
+ ht=2.4ex,
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip]{block title alerted}
+ \usebeamerfont*{block title alerted}\insertblocktitle%
+ \end{beamercolorbox}%
+ \vspace*{-1pt}
+ \usebeamerfont{block body alerted}%
+ \begin{beamercolorbox}[%
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip,
+ vmode]{block body alerted}%
+}
+\setbeamertemplate{block alerted end}{%
+ \end{beamercolorbox}
+ \vspace*{0.2ex}
+}
+% \end{macrocode}
+%
+% Example block environment
+%
+% \begin{macrocode}
+\setbeamertemplate{block example begin}{%
+ \setlength{\parskip}{\@metropolis@parskip}
+ \vspace*{1ex}
+ \begin{beamercolorbox}[%
+ ht=2.4ex,
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip]{block title example}
+ \usebeamerfont*{block title example}\insertblocktitle%
+ \end{beamercolorbox}%
+ \vspace*{-1pt}
+ \usebeamerfont{block body example}%
+ \begin{beamercolorbox}[%
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip,
+ vmode]{block body example}%
+}
+\setbeamertemplate{block example end}{%
+ \end{beamercolorbox}
+ \vspace*{0.2ex}
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Lists and floats}
+%
+% \begin{macrocode}
+\setbeamertemplate{itemize items}{\textbullet}
+\setbeamertemplate{caption label separator}{: }
+\setbeamertemplate{caption}[numbered]
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Footnotes}
+% \begin{macrocode}
+\setbeamertemplate{footnote}{%
+ \parindent 0em\noindent%
+ \raggedright
+ \usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Text and spacing settings}
+%
+% \begin{macrocode}
+\newlength{\@metropolis@parskip}
+\setlength{\@metropolis@parskip}{0.5em}
+\setlength{\parskip}{\@metropolis@parskip}
+\linespread{1.15}
+% \end{macrocode}
+%
+% By default, Beamer frames offer the |c| option to \textit{almost} vertically
+% center the text, but the placement is a little too high. To fix this, we
+% redefine the |c| option to equalize |\beamer@frametopskip| and
+% |\beamer@framebottomskip|. This solution was suggested by Enrico Gregorio in
+% an answer to \href{http://tex.stackexchange.com/questions/247826/}{this
+% Stack Exchange question}.
+%
+% \begin{macrocode}
+\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{}%
+}
+% \end{macrocode}
+%
+% Process package options
+%
+% \begin{macrocode}
+\@metropolis@inner@setdefaults
+\ProcessPgfPackageOptions{/metropolis/inner}
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx
new file mode 100644
index 00000000000..2b3df9d73fd
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerouterthememetropolis.dtx
@@ -0,0 +1,268 @@
+% \iffalse meta-comment -------------------------------------------------------
+% 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/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<driver> \ProvidesFile{beamerouterthememetropolis.dtx}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamerouterthememetropolis}[2015/12/04 Metropolis outer theme]
+%</package>
+%<driver> \documentclass{ltxdoc}
+%<driver> \usepackage{beamerouterthememetropolis}
+%<driver> \begin{document}
+%<driver> \DocInput{beamerouterthememetropolis.dtx}
+%<driver> \end{document}
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+%
+% \subsection{\textsc{metropolis} outer theme}
+%
+% A |beamer| outer theme dictates the style of the frame elements traditionally
+% set outside the body of each slide: the head, footline, and frame title.
+%
+% Load required packages.
+% \begin{macrocode}
+\RequirePackage{etoolbox}
+\RequirePackage{calc}
+\RequirePackage{pgfopts}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Options}
+%
+% \begin{macro}{numbering}
+% This option controls the page numbering.
+% \begin{macrocode}
+\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],
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{progressbar}
+% This option controls the progressbar.
+% \begin{macrocode}
+\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}%
+ }
+ },
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{frametitleformat}
+% Control the titleformat of the frame title
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/outer/titleformat frame/.cd,
+ .is choice,
+ regular/.code={%
+ \let\@metropolis@frametitleformat\@empty%
+ \setbeamerfont{frametitle}{shape=\normalfont}%
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}%
+ }
+ },
+ smallcaps/.code={%
+ \let\@metropolis@frametitleformat\@empty%
+ \setbeamerfont{frametitle}{shape=\scshape}%
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}%
+ }
+ },
+ allsmallcaps/.code={%
+ \let\@metropolis@frametitleformat\MakeLowercase%
+ \setbeamerfont{frametitle}{shape=\scshape}%
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{abcdefghijklmnopqrstuvwxyz}%
+ }
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat frame=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@frametitleformat\MakeUppercase%
+ \setbeamerfont{frametitle}{shape=\normalfont}
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZ}%
+ }
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat frame=allcaps can lead to problems%
+ }
+ },
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\@metropolis@outer@setdefaults}
+% Set default values for outer theme options.
+% \begin{macrocode}
+\newcommand{\@metropolis@outer@setdefaults}{
+ \pgfkeys{/metropolis/outer/.cd,
+ numbering=counter,
+ progressbar=none,
+ titleformat frame=regular,
+ }
+}
+% \end{macrocode}%
+% \end{macro}
+%
+%
+%
+% \subsubsection{Head and footline}
+%
+% All good |beamer| presentations should already remove the navigation symbols,
+% but \textsc{metropolis} removes them automatically (just in case).
+%
+% \begin{macrocode}
+\setbeamertemplate{navigation symbols}{}
+% \end{macrocode}
+%
+% Templates for the frame number. Can be omitted, shown or displayed as a
+% fraction of the total frames.
+%
+% \begin{macrocode}
+\defbeamertemplate{frame numbering}{none}{}
+\defbeamertemplate{frame numbering}{counter}{\insertframenumber}
+\defbeamertemplate{frame numbering}{fraction}{
+ \insertframenumber/\inserttotalframenumber
+}
+% \end{macrocode}
+%
+% \begin{macrocode}
+\defbeamertemplate{headline}{plain}{}
+\defbeamertemplate{footline}{plain}{%
+ \begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
+ \hfill%
+ \usebeamerfont{page number in head/foot}%
+ \usebeamertemplate*{frame numbering}
+ \end{beamercolorbox}%
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Frametitle}
+%
+% \begin{macro}{\@metropolis@frametitleformat}
+% Define a hook to change the case format of the frame title.
+% \begin{macrocode}
+\def\@metropolis@frametitleformat#1{#1}
+% \end{macrocode}
+% \end{macro}
+%
+% To make the |\MakeLowercase| and |\MakeUppercase| macros work in the
+% frame title we have to patch |\beamer@@frametitle|. This solution was
+% suggested by Enrico Gregorio in an answer to
+% \href{http://tex.stackexchange.com/questions/112526/}{this StackExchange
+% question}.
+%
+% \begin{macrocode}
+\patchcmd{\beamer@@frametitle}
+ {\beamer@ifempty{#2}{}{%
+ \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
+ \usebeamertemplate*{frametitle continuation}\fi}}%
+ \gdef\beamer@frametitle{#2}%
+ \gdef\beamer@shortframetitle{#1}%
+ }}
+ {\beamer@ifempty{#2}{}{%
+ \gdef\insertframetitle{{\@metropolis@frametitleformat{#2}\ifnum%
+ \beamer@autobreakcount>0\relax{}\space%
+ \usebeamertemplate*{frametitle continuation}\fi}}%
+ \gdef\beamer@frametitle{#2}%
+ \gdef\beamer@shortframetitle{#1}%
+ }}
+ {}
+ {\PackageError{beamerouterthememetropolis}{Patching frame title failed}}
+% \end{macrocode}
+%
+% \begin{macro}{frametitle}
+%
+% Templates for the frame title, which is optionally underlined with a
+% progress bar.
+%
+% \begin{macrocode}
+\newlength{\@metropolis@frametitlestrut}
+\defbeamertemplate{frametitle}{plain}{%
+ \nointerlineskip%
+ \begin{beamercolorbox}[%
+ wd=\paperwidth,%
+ sep=1.5ex,%
+ ]{frametitle}%
+ \@metropolis@frametitlestrut\insertframetitle\@metropolis@frametitlestrut%
+ \end{beamercolorbox}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{progress bar in head/foot}
+%
+% Template for the progress bar optionally displayed below the frame title
+% on each page. Much of this code is duplicated in the inner theme's template
+% |progress bar in section page|.
+%
+% \begin{macrocode}
+\newlength{\metropolis@progressinheadfoot}
+\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}
+ \begin{tikzpicture}
+ \draw[bg, fill=bg] (0,0) rectangle (\paperwidth, 0.4pt);
+ \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressinheadfoot, 0.4pt);
+ \end{tikzpicture}%
+ \end{beamercolorbox}
+}
+% \end{macrocode}
+% \end{macro}
+%
+% Process package options
+%
+% \begin{macrocode}
+\@metropolis@outer@setdefaults
+\ProcessPgfPackageOptions{/metropolis/outer}
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx
new file mode 100644
index 00000000000..0cec598d0db
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.dtx
@@ -0,0 +1,219 @@
+% \iffalse meta-comment -------------------------------------------------------
+% 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/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<driver> \ProvidesFile{beamerthememetropolis.dtx}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{beamerthememetropolis}[2015/12/04 Metropolis Beamer theme]
+%</package>
+%<driver> \documentclass{ltxdoc}
+%<driver> \usepackage{beamerthememetropolis}
+%<driver> \begin{document}
+%<driver> \DocInput{beamerthememetropolis.dtx}
+%<driver> \end{document}
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+%
+% \subsection{\textsc{metropolis} main theme}
+%
+% The primary job of this package is to load the component sub-packages of the
+% \textsc{metropolis} theme and route the theme options accordingly. It also
+% provides some custom commands and environments for the user.
+%
+% Load the required packages.
+% \begin{macrocode}
+\RequirePackage{etoolbox}
+\RequirePackage{pgfopts}
+% \end{macrocode}
+%
+% \subsubsection{Options}
+%
+% \begin{macro}{\metroset}
+% First of all we define a macro for the user to set options.
+% \begin{macrocode}
+\newcommand{\metroset}[1]{\pgfkeys{/metropolis/.cd,#1}}
+% \end{macrocode}
+% \end{macro}
+%
+% Then we need to pass the unknown options to the sub-packages.
+%
+% \begin{macrocode}
+\pgfkeys{/metropolis/.cd,
+ .search also={
+ /metropolis/inner,
+ /metropolis/outer,
+ /metropolis/color,
+ },
+% \end{macrocode}
+%
+% We have to forwarded keys that affect multiple sub-packages manually.
+%
+% \begin{macrocode}
+ block/.code=\pgfkeysalso{
+ inner/block=#1,
+ color/block=#1,
+ },
+}
+% \end{macrocode}
+%
+% \begin{macro}{titleformat plain}
+% Control the titleformat of the plain title
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/titleformat plain/.cd,
+ .is choice,
+ regular/.code={%
+ \let\@metropolis@plaintitleformat\@empty%
+ \setbeamerfont{plain title}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\@metropolis@plaintitleformat\@empty%
+ \setbeamerfont{plain title}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\@metropolis@plaintitleformat\MakeLowercase%
+ \setbeamerfont{plain title}{shape=\scshape}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat plain=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@plaintitleformat\MakeUppercase%
+ \setbeamerfont{plain title}{shape=\normalfont}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat plain=allcaps can lead to problems%
+ }
+ },
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{titleformat}
+% Control the titleformat of every title type together
+% \begin{macrocode}
+\pgfkeys{
+ /metropolis/titleformat/.code=\pgfkeysalso{
+ inner/titleformat title=#1,
+ inner/titleformat subtitle=#1,
+ inner/titleformat section=#1,
+ outer/titleformat frame=#1,
+ titleformat plain=#1,
+ }
+}
+% \end{macrocode}
+% \end{macro}
+%
+% For backwards compatibility with earlier betas of the theme, we implement
+% deprecated option names as aliases to the corresponding |key=value| options.
+%
+% \begin{macrocode}
+\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},
+}
+% \end{macrocode}
+%
+% Set default values for options.
+%
+% \begin{macrocode}
+\newcommand{\@metropolis@setdefaults}{
+ \pgfkeys{/metropolis/.cd,
+ titleformat plain=regular,
+ }
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Component sub-packages}
+%
+% Having processed the options, we can now load the component sub-packages of
+% the theme.
+% \begin{macrocode}
+\useinnertheme{metropolis}
+\useoutertheme{metropolis}
+\usecolortheme{metropolis}
+\usefonttheme{metropolis}
+% \end{macrocode}
+%
+% The |tol| theme for |pgfplots| is only loaded if |pgfplots| is used.
+%
+% \begin{macrocode}
+\AtEndPreamble{%
+ \@ifpackageloaded{pgfplots}{%
+ \RequirePackage{pgfplotsthemetol}
+ }{}
+}
+% \end{macrocode}
+%
+%
+%
+% \subsubsection{Custom commands}
+%
+% We define custom commands in this package as their proper usage may depend
+% on multiple sub-packages.
+%
+% \begin{macro}{\@metropolis@plaintitleformat}
+% Define a hook to change the case format of the plain title.
+% \begin{macrocode}
+\def\@metropolis@plaintitleformat#1{#1}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\plain}
+% Creates a plain frame with dark background, suitable for displaying images
+% or a few words.
+% \begin{macrocode}
+\newcommand{\plain}[2][]{%
+ \begingroup
+ \setbeamercolor{background canvas}{
+ use=palette primary,
+ parent=palette primary
+ }
+ \begin{frame}[c]{#1}
+ \begin{center}
+ \usebeamercolor[fg]{palette primary}
+ \usebeamerfont{plain title}
+ \@metropolis@plaintitleformat{#2}
+ \end{center}
+ \end{frame}
+ \endgroup
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\mreducelistspacing}
+% \begin{macrocode}
+\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
+% \end{macrocode}
+% \end{macro}
+%
+% Process package options
+%
+% \begin{macrocode}
+\@metropolis@setdefaults
+\ProcessPgfOptions{/metropolis}
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins
new file mode 100644
index 00000000000..5a78e84ba72
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/beamerthememetropolis.ins
@@ -0,0 +1,71 @@
+%% ---------------------------------------------------------------------------
+%% 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/).
+%% ---------------------------------------------------------------------------
+
+\input{docstrip.tex}
+\keepsilent
+\askforoverwritefalse
+\usedir{tex/latex/mtheme}
+
+\preamble
+---------------------------------------------------------------------------
+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/).
+---------------------------------------------------------------------------
+\endpreamble
+
+\generate{\file{beamerthememetropolis.sty}{%
+ \from{beamerthememetropolis.dtx}{package}}
+ }
+\generate{\file{beamerinnerthememetropolis.sty}{%
+ \from{beamerinnerthememetropolis.dtx}{package}}
+ }
+\generate{\file{beamerouterthememetropolis.sty}{%
+ \from{beamerouterthememetropolis.dtx}{package}}
+ }
+\generate{\file{beamerfontthememetropolis.sty}{%
+ \from{beamerfontthememetropolis.dtx}{package}}
+ }
+\generate{\file{beamercolorthememetropolis.sty}{%
+ \from{beamercolorthememetropolis.dtx}{package}}
+ }
+\generate{\file{pgfplotsthemetol.sty}{%
+ \from{pgfplotsthemetol.dtx}{package}}
+ }
+
+\obeyspaces
+\Msg{**************************************************************}
+\Msg{* *}
+\Msg{* To finish the installation you have to move the following *}
+\Msg{* files into a directory searched by TeX: *}
+\Msg{* *}
+\Msg{* beamerthememetropolis.sty *}
+\Msg{* beamerinnerthememetropolis.sty *}
+\Msg{* beamerouterthememetropolis.sty *}
+\Msg{* beamerfontthememetropolis.sty *}
+\Msg{* beamercolorthememetropolis.sty *}
+\Msg{* pgfplotsthemetol.sty *}
+\Msg{* *}
+\Msg{* To produce the documentation run the file mtheme.dtx *}
+\Msg{* through LaTeX. *}
+\Msg{* *}
+\Msg{* Happy TeXing! *}
+\Msg{* *}
+\Msg{**************************************************************}
+
+\endbatchfile
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx
new file mode 100644
index 00000000000..d78c6dd2f7b
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/metropolistheme.dtx
@@ -0,0 +1,532 @@
+%% ---------------------------------------------------------------------------
+%% 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/).
+%% ---------------------------------------------------------------------------
+
+\documentclass{ltxdoc}
+%\OnlyDescription
+
+\usepackage{parskip}
+\usepackage{setspace}
+\usepackage{xspace}
+\onehalfspacing
+
+\usepackage{etoolbox}
+\usepackage{ifxetex}
+\usepackage{ifluatex}
+
+\ifboolexpr{bool {xetex} or bool {luatex}}{
+ \usepackage{fontspec}
+ \defaultfontfeatures{Ligatures=TeX}
+
+ \newcounter{fontsnotfound}
+ \newcommand{\checkfont}[1]{%
+ \suppressfontnotfounderror=1%
+ \font\x = "#1" at 10pt
+ \selectfont
+ \ifx\x\nullfont%
+ \stepcounter{fontsnotfound}%
+ \fi%
+ \suppressfontnotfounderror=0%
+ }
+
+ \newcommand{\iffontsexist}[3]{%
+ \setcounter{fontsnotfound}{0}%
+ \expandafter\forcsvlist\expandafter%
+ \checkfont\expandafter{#1}%
+ \ifnum\value{fontsnotfound}=0%
+ #2%
+ \else%
+ #3%
+ \fi%
+ }
+ \iffontsexist{Fira Sans Light,%
+ Fira Sans Light Italic,%
+ Fira Sans,%
+ Fira Sans Italic}{%
+ \setmainfont[BoldFont={Fira Sans}]{Fira Sans Light}%
+ }{%
+ \iffontsexist{Fira Sans Light OT,%
+ Fira Sans Light Italic OT,%
+ Fira Sans OT,%
+ Fira Sans Italic OT}{%
+ \setmainfont[BoldFont={Fira Sans OT}]{Fira Sans Light OT}%
+ }{%
+ \typeout{%
+ Could not find Fira Sans fonts. Creating documentation%
+ with standard fonts.%
+ }
+ }
+ }
+ \iffontsexist{Fira Mono, Fira Mono Bold}{%
+ \setmonofont{Fira Mono}%
+ }{%
+ \iffontsexist{Fira Mono OT, Fira Mono Bold OT}{%
+ \setmonofont{Fira Mono OT}%
+ }{%
+ \typeout{%
+ Could not find Fira Sans fonts. Creating documentation%
+ with standard monospaced fonts.%
+ }
+ }
+ }
+}{
+ \typeout{%
+ You need to compile with XeLaTeX or LuaLaTeX to use the Fira fonts.%
+ }
+}
+
+\usepackage{enumitem}
+\setlist[itemize]{noitemsep}
+\setlist[enumerate]{noitemsep}
+
+\usepackage{xcolor}
+\definecolor{mDarkBrown}{HTML}{604c38}
+\definecolor{mDarkTeal}{HTML}{23373b}
+\definecolor{mLightBrown}{HTML}{EB811B}
+\definecolor{mLightGreen}{HTML}{14B03D}
+\definecolor{mBackground}{HTML}{FFFFFF}
+
+\usepackage{listings}
+\lstset{%
+ language=[LaTeX]{TeX},
+ basicstyle=\ttfamily,
+ keywordstyle=\color{mLightBrown}\bfseries,
+ commentstyle=\color{mLightGreen},
+ stringstyle=\color{mLightGreen},
+ backgroundcolor=\color{mBackground},
+ numbers=none,
+ numberstyle=\tiny\ttfamily,
+ stepnumber=2,
+ showspaces=false,
+ showstringspaces=false,
+ showtabs=false,
+ frame=none,
+ framerule=1pt,
+ tabsize=2,
+ rulesep=5em,
+ captionpos=b,
+ breaklines=true,
+ breakatwhitespace=false,
+ framexleftmargin=0em,
+ framexrightmargin=0em,
+ xleftmargin=0em,
+ xrightmargin=0em,
+ aboveskip=1em,
+ belowskip=1em,
+ morekeywords={usetheme,institute,maketitle,@metropolis@titleformat,%
+ plain,setbeamercolor,metroset,setsansfont,setmonofont},
+}
+\lstMakeShortInline|
+
+\usepackage[colorlinks=true,
+ linkcolor=mLightBrown,
+ menucolor=mLightBrown,
+ pagecolor=mLightBrown,
+ urlcolor=mLightBrown]{hyperref}
+
+\newcommand{\DescribeOption}[4]{
+ \DescribeMacro{#1}
+ \begin{minipage}[t]{\textwidth}
+ \textit{\textbf{\textcolor{mLightGreen}{#2}}}\dotfill\,#3\par
+ \begingroup
+ \vspace{0.5em}#4\par
+ \endgroup
+ \end{minipage}
+}
+
+\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
+
+\GetFileInfo{beamerthememetropolis.dtx}
+\title{Modern Beamer Presentations with the \themename package}
+\author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
+\date{v1.0}
+
+\begin{document}
+
+\maketitle
+\tableofcontents
+
+\section{Introduction}
+
+Beamer is an awesome way to make presentations with LaTeX, but its theme
+selection is surprisingly sparse. The stock themes share an aesthetic that is
+now overused and can be a little cluttered, and the few distinctive custom
+themes available are often specialized for a particular corporate or
+institutional brand.
+
+The goal of \themename is to provide a simple, modern Beamer theme suitable
+for anyone to use. It tries to minimize noise and maximize space for content;
+the only visual flourish it offers is an (optional) progress bar added to each
+slide or to the section slides.
+
+By default, \themename uses
+\href{https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/}
+{Fira Sans}, a gorgeous typeface commissioned by Mozilla and designed by
+\href{http://www.carrois.com/fira-3-1/}{Carrois}. For best results, you will
+need the Fira typeface installed and use Xe\LaTeX{} to typeset your slides.
+However, \themename can also be used with other typefaces and \LaTeX{} build
+systems.
+
+\themename's codebase is maintained on \href{https://github.com/matze/mtheme}
+{GitHub}. If you have issues, find mistakes in the manual or want to help make
+the theme even better, please get in touch there. The
+\href{https://github.com/matze/mtheme/graphs/contributors}
+{full list of contributors} already contains over a dozen names!
+
+
+\section{Getting Started}
+
+\subsection{Installing from CTAN}
+For the regular user it is recommended to install \themename from
+\href{https://www.ctan.org}{CTAN}. In case you keep your \TeX\ distribution
+up-to-date, chances are good that \themename is already installed. If it is not,
+you need to update your packages. For \TeX\ Live (or Mac\TeX\ on OS X) the
+following command updates all packages.
+
+\begin{lstlisting}
+sudo tlmgr update --all
+\end{lstlisting}
+
+For any other distribution please refer to its documentation on how to update your
+packages.
+
+To get the most out of the theme you should also install the |Fira| fonts. Yet this
+is not mandatory. \themename also works with the standard fonts.
+
+\subsection{Installing from GitHub}
+
+Installing \themename, like any Beamer theme, involves four easy steps:
+\begin{description}
+ \item[Download the source] with a |git clone| of the
+ \href{https://github.com/matze/mtheme}{\themename repository} or as a
+ \href{https://github.com/matze/mtheme/archive/master.zip}{zip archive}
+ of the latest development version.
+
+ \item[Compile the style files] by running |make sty| inside the downloaded
+ directory. (Or run \LaTeX{} directly on |source/metropolistheme.ins|.)
+
+ \item[Move the resulting |*.sty| files] to the folder containing your
+ presentation. To use \themename with many presentations, run
+ |make install| or move the |*.sty| files to a folder in your \TeX{} path
+ instead.
+
+ \item[Use the theme for your presentation] by declaring
+ |\usetheme{metropolis}| in the preamble of your Beamer document.
+\end{description}
+
+\themename uses the Make build system to offer the following installation
+options for advanced users:
+
+\begin{description}
+ \item[|make sty|] builds the theme style files.
+ \item[|make doc|] builds this documentation manual.
+ \item[|make demo|] builds a demo presentation to test the features of
+ \themename.
+ \item[|make all|] builds the theme, manual, and demo presentation.
+ \item[|make clean|] removes the files generated by |make all|.
+ \item[|make install|] installs the theme into your local texmf folder.
+ \item[|make uninstall|] removes the theme from your local texmf folder.
+ \item[|make ctan|] creates a package for CTAN distribution.
+\end{description}
+
+\subsection{Installing the Debian Package}
+As an alternative users of Debian or Ubuntu can also install this
+\href{https://launchpad.net/\%7Eedd/+archive/ubuntu/misc/+files/latex-mtheme_0.1.0vidid1_all.deb}{.deb package}
+containing the theme files as well as the Fira Sans font files.
+
+\subsection{A Minimal Example}
+
+The following code shows a minimal example of a Beamer presentation using
+\themename.
+
+\begin{lstlisting}
+\documentclass{beamer}
+\usetheme{metropolis} % Use metropolis theme
+\title{A minimal example}
+\date{\today}
+\author{Matthias Vogelgesang}
+\institute{Centre for Modern Beamer Themes}
+\begin{document}
+ \maketitle
+ \section{First Section}
+ \begin{frame}{First Frame}
+ Hello, world!
+ \end{frame}
+\end{document}
+\end{lstlisting}
+
+
+\subsection{Dependencies}
+
+\begin{itemize}
+ \item TikZ
+ \item XeLaTeX or LuaTeX
+ \item \href{https://github.com/mozilla/Fira}{Fira Sans} and Mono font
+\end{itemize}
+
+The |Fira Sans| font is not a hard dependency. \themename will try to load the
+font and use it if it is installed, but if not it will just use the standard
+font. Depending on the Linux distribution, the packaged name of |Fira Sans|
+might be |Fira Sans OT| instead of |Fira Sans|. \themename will check for this
+name too.
+
+\subsection{Pandoc}
+
+To use this theme with \href{http://johnmacfarlane.net/pandoc/}{Pandoc}-based
+presentations, you can run the following command
+
+\begin{lstlisting}
+$ pandoc -t beamer --latex-engine=xelatex -V theme:m -o output.pdf input.md
+\end{lstlisting}
+
+
+
+
+\section{Customization}
+\subsection{Package options}
+The theme provides a number of options. The options use a key=value interface.
+So every option is controlled by a key its value. To use an option you can
+either provide a comma separated list of options when invoking
+\textsc{metropolis} in the preamble of the presentation.
+\begin{lstlisting}
+\usetheme[<key=value list>]{metropolis}
+\end{lstlisting}
+Or you can set them at any time with the |\metroset| macro.
+\begin{lstlisting}
+\metroset{<key=value list>}
+\end{lstlisting}
+To set an option on a specific sub-package only you have to add the
+corresponding prefix (inner, outer, color), e.g.
+\begin{lstlisting}
+\metroset{inner/block=fill}
+\end{lstlisting}
+The list of options is structured as shown in the following example.
+
+\DescribeOption{key}{list of possible values}{default value}{
+ A short description of the option.
+}
+
+Although the options are grouped into the corresponding packages every option
+can and in most cases should be set on the main theme directly. If an option
+is listed in multiple sub-packages, setting it on the main theme will set the
+option on every sub-package accordingly.
+
+\subsubsection{Main theme}
+\DescribeOption{titleformat}%
+ {regular, smallcaps, allsmallcaps, allcaps}
+ {regular}{
+ Shortcut option to change the titleformat of all titles together. Please
+ refer to section \ref{sec:titleformats} for known issues.
+}
+
+\DescribeOption{titleformat plain}%
+ {regular, smallcaps, allsmallcaps, allcaps}%
+ {regular}{
+ Control the titleformat of the plain title. Please refer to section
+ \ref{sec:titleformats} for known issues.
+}
+
+\subsubsection{Inner theme}
+\DescribeOption{block}{transparent, fill}{transparent}{
+ This option controls the block background. It can either be filled with a
+ light grey or be transparent.
+}
+
+\DescribeOption{sectionpage}{none, simple, progressbar}{progressbar}{
+ Disable section pages at all, typeset centered section title or add a thin
+ progress bar below the centered section title.
+}
+
+\DescribeOption{titleformat title}%
+ {regular, smallcaps, allsmallcaps, allcaps}%
+ {regular}{
+ Control the titleformat of the title. Please refer to section
+ \ref{sec:titleformats} for known issues.
+}
+
+\DescribeOption{titleformat subtitle}%
+ {regular, smallcaps, allsmallcaps, allcaps}%
+ {regular}{
+ Control the titleformat of the subtitle. Please refer to section
+ \ref{sec:titleformats} for known issues.
+}
+
+\DescribeOption{titleformat section}%
+ {regular, smallcaps, allsmallcaps, allcaps}%
+ {regular}{
+ Control the titleformat of the section title. Please refer to section
+ \ref{sec:titleformats} for known issues.
+}
+
+\subsubsection{Outer theme}
+\DescribeOption{numbering}{none, counter, fraction}{counter}{
+ In the bottom right corner of each frame the current frame number is
+ displayed. This can be disabled or the total framenumber can be added
+ additionally.
+}
+
+\DescribeOption{progressbar}{none, head, frametitle, foot}{none}{
+ Adds a progress bar to the top of each frame (|head|), the bottom of each
+ frame (|foot|), or directly below each frame title (|frametitle|).
+}
+
+\DescribeOption{titleformat frame}%
+ {regular, smallcaps, allsmallcaps, allcaps}%
+ {regular}{
+ Control the titleformat of the frame title. Please refer to section
+ \ref{sec:titleformats} for known issues.
+}
+
+\subsubsection{Color theme}
+\DescribeOption{block}{transparent, fill}{transparent}{
+ This option controls the block background. It can either be filled with a
+ light grey or be transparent.
+}
+
+\DescribeOption{background}{dark, light}{light}{
+ This option defines whether the background shall be dark and the foreground
+ be light or vice versa.
+}
+
+\subsection{Color Customization}
+
+The included \themename color theme is used by default, but its colors can be
+easily changed to suit your tastes. All of the theme's styles are defined in
+terms of three beamer colors:
+\begin{itemize}
+ \item |normal text| (dark fg, light bg)
+ \item |alerted text| (colored fg, should be visible against dark or light)
+ \item |example text| (colored fg, should be visible against dark or light)
+\end{itemize}
+An easy way to customize the theme is to redefine these colors using
+
+\begin{lstlisting}
+\setbeamercolor{ ... }{ fg= ... , bg= ... }
+\end{lstlisting}
+in your preamble. For greater customization, you can redefine any of the other
+stock beamer colors. In addition to the stock colors the theme defines a number
+of \themename specific colors, which can also be redefined to your liking.
+
+\begin{lstlisting}
+\setbeamercolor{progress bar}{ ... }
+\setbeamercolor{title separator}{ ... }
+\setbeamercolor{progress bar in head/foot}{ ... }
+\setbeamercolor{progress bar in section page}{ ... }
+\end{lstlisting}
+
+\subsection{Font Customization}
+
+The default font for \themename is |Fira|. Yet this can be easily changed using
+the standard font selection commands of the \textsf{fontspec} package. So if
+you for example prefer the \href{http://font.ubuntu.com}{|Ubuntu|} font family
+just add the following two commands after loading the \themename theme.
+
+\begin{lstlisting}
+\setsansfont{Ubuntu}
+\setmonofont{Ubuntu Mono}
+\end{lstlisting}
+
+
+\subsubsection{Old style figures}
+
+The regular \textsf{fontspec} mechanism for changing glyph appearance applies
+also to this theme. In case you want to have old style figures in the text but
+regular lined figures for math, you have to add the following to your preamble:
+
+\begin{lstlisting}
+\usefonttheme{professionalfonts} % required for mathspec
+\usepackage{mathspec}
+\setsansfont[BoldFont={Fira Sans},
+ Numbers={OldStyle}]{Fira Sans Light}
+\setmathsfont(Digits)[Numbers={Lining, Proportional}]{Fira Sans Light}
+\end{lstlisting}
+
+
+\subsection{Commands}
+
+\begin{macro}{\plain}
+The \lstinline|\plain{title=[]}{<body>}| command sets a slide in with a plain
+dark background, which can be useful to focus attention on a single sentence
+or image.
+\end{macro}
+
+\subsection{Paul Tol's colors: a \texttt{pgfplots} theme}
+
+A good presentation uses colors that are
+
+\begin{itemize}
+ \item distinct from each other as much as possible, and
+ \item distinct from black and white,
+ \item under many different lighting and display environments, and
+ \item to color-blind viewers,
+ \item all while matching well together.
+\end{itemize}
+
+In a \href{https://personal.sron.nl/~pault/colourschemes.pdf}{technical note}
+for SRON, Paul Tol proposed a palette of colors satisfying these constraints.
+The sub-package |pgfplotsthemetol| defines palettes for |pgfplots| charts
+based on Tol's work. Use the |mlineplot| key to plot line data and |mbarplot|
+or horizontal |mbarplot| to plot bar charts.
+
+
+\section{Known Issues}
+
+\subsection{Titleformats}
+\label{sec:titleformats}
+If you want to use either |smallcaps| or |allsmallcaps| be aware that not
+every font supports small caps. So make sure the font you are using does.
+
+|allsmallcaps| and |allcaps| are quite nice from an aesthetic point of view,
+but they introduce some issues by using |\MakeLowercase| and |\MakeUppercase|,
+respectively.
+
+\begin{itemize}
+ \item Some commands, like |\\|, do not work inside |\MakeLowercase| and
+ |\MakeUppercase|. (See \href{https://github.com/matze/mtheme/issues/125}
+ {\#125})
+ \item Only alphabetic characters are affected by |\MakeLowercase|, so
+ numerals and punctuation remain at full height. This can spoil some of the
+ aesthetic benefits of |allsmallcaps|. (See
+ \href{https://github.com/matze/mtheme/issues/33}{\#33})
+ \item |\MakeLowercase| and |\MakeUppercase| apply to math mode and
+ |\scshape| does not. This can easily introduce mathematical errors that
+ are hard to catch.
+ \item It is impossible to typeset symbols which are encoded as uppercase
+ letters in a different font. In particular, |\mathbb| and |\mathcal|
+ letters will be replaced by other math glyphs. (See
+ \href{https://github.com/matze/mtheme/issues/153}{\#153})
+\end{itemize}
+
+\subsection{Plain Frame}
+The |\plain| command does not work if you override the \themename color theme
+with the default beamer color theme |fly|.
+
+\section{License}
+
+The theme itself is licensed under a
+\href{http://creativecommons.org/licenses/by-sa/4.0/}{Creative Commons
+Attribution-ShareAlike 4.0 International License}. This means that if you change
+the theme and re-distribute it, you must retain the copyright notice header and
+license it under the same CC-BY-SA license. This does not affect the
+presentation that you create with the theme.
+
+
+
+\section{Implementation}
+
+\DocInput{beamerthememetropolis.dtx}
+\DocInput{beamerinnerthememetropolis.dtx}
+\DocInput{beamerouterthememetropolis.dtx}
+\DocInput{beamerfontthememetropolis.dtx}
+\DocInput{beamercolorthememetropolis.dtx}
+\DocInput{pgfplotsthemetol.dtx}
+
+\end{document}
diff --git a/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx b/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx
new file mode 100644
index 00000000000..77598b06ddb
--- /dev/null
+++ b/Master/texmf-dist/source/latex/beamertheme-metropolis/pgfplotsthemetol.dtx
@@ -0,0 +1,190 @@
+% \iffalse meta-comment -------------------------------------------------------
+% 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 these colors were inspired by the Paul Tol 21-color Salute by Peter Carl.
+%
+% http://www.r-bloggers.com/the-paul-tol-21-color-salute/
+%
+% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
+% International License (https://creativecommons.org/licenses/by-sa/4.0/).
+% ------------------------------------------------------------------------- \fi
+% \iffalse
+%<driver> \ProvidesFile{pgfplotsthemetol.dtx}
+%<*package>
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{pgfplotsthemetol}
+ [2015/06/16 PGFplots colors based on Paul Tol's SRON technical note]
+%</package>
+%<driver> \documentclass{ltxdoc}
+%<driver> \usepackage{pgfplotsthemetol}
+%<driver> \begin{document}
+%<driver> \DocInput{pgfplotsthemetol.dtx}
+%<driver> \end{document}
+% \fi
+% \CheckSum{0}
+% \StopEventually{}
+% \iffalse
+%<*package>
+% ------------------------------------------------------------------------- \fi
+%
+% \subsection{Tol \texttt{pgfplots} theme}
+%
+% Paul Tol's 12-color palette\footnote{Tol actually describes several
+% palettes; these colours are taken from the bottom row of Figure 3 in his
+% technical note.} is as follows:
+%
+% \begin{macrocode}
+\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}
+% \end{macrocode}
+%
+% To use these colors, we describe ``cycle lists'' from which PGF chooses
+% styles for the different series in a chart.
+%
+% \begin{macro}{mbarplot cycle}
+% Colors and styles intended for bar charts with up to 12 series.
+%
+% \begin{macrocode}
+\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},
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{mlineplot cycle}
+% Colors and styles intended for line charts with up to 4 series.
+% \begin{macrocode}
+\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},
+}
+% \end{macrocode}
+% \end{macro}
+%
+% However, the above cycle lists are not applied automatically. We still need
+% to define styles --- |mlineplot| and |mbarplot| --- that the user can apply
+% to the axis of a |pgfplots| chart to use the colors. We'll also take the
+% opportunity to adjust the display of chart axes when these styles are used.
+%
+% \begin{macrocode}
+\pgfplotsset{
+ compat=1.9,
+% \end{macrocode}
+%
+% \begin{macro}{mlineplot}
+% A style to apply to the axis of a PGF line plot.
+% \begin{macrocode}
+ 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,
+ },
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{mbarplot}
+% \begin{macro}{horizontal mbarplot}
+% A style to apply to the axis of a PGF bar chart. |mbarplot| uses vertical
+% bars by default, while |horizontal mbarplot| has horizontal bars as the
+% name implies. Their shared properties are factored out into the internal
+% style |mbarplot base|.
+%
+% \begin{macrocode}
+ 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,
+ },
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \begin{macro}{mbaseplot}
+% Adjusts the appearance of the axes in a PGF chart.
+% \begin{macrocode}
+ 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={}
+ },
+}
+% \end{macrocode}
+% \end{macro}
+% \iffalse
+%</package>
+% \fi
+% \Finale
+\endinput
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty
new file mode 100644
index 00000000000..6badc65c135
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamercolorthememetropolis.sty
@@ -0,0 +1,126 @@
+%%
+%% 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}[2015/12/04 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
+ }
+}
+\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, parent=normal text}
+}
+\newcommand{\@metropolis@block@fill}{
+ \setbeamercolor{block title}{%
+ use=normal text,
+ fg=normal text.fg,
+ bg=normal text.bg!80!fg
+ }
+}
+\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{block body}{
+ use={block title, normal text},
+ bg=block title.bg!50!normal text.bg
+}
+\setbeamercolor{footnote}{fg=normal text.fg!90}
+\setbeamercolor{footnote mark}{fg=.}
+\@metropolis@color@setdefaults
+\ProcessPgfPackageOptions{/metropolis/color}
+\mode<all>
+\endinput
+%%
+%% End of file `beamercolorthememetropolis.sty'.
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty
new file mode 100644
index 00000000000..c85a41a9746
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerfontthememetropolis.sty
@@ -0,0 +1,112 @@
+%%
+%% 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}[2015/12/04 Metropolis font theme]
+\RequirePackage{etoolbox}
+\RequirePackage{ifxetex}
+\RequirePackage{ifluatex}
+\ifboolexpr{bool {xetex} or bool {luatex}}{
+ \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{\iffontsexist}[3]{%
+ \setcounter{fontsnotfound}{0}%
+ \expandafter\forcsvlist\expandafter%
+ \checkfont\expandafter{#1}%
+ \ifnum\value{fontsnotfound}=0%
+ #2%
+ \else%
+ #3%
+ \fi%
+ }
+ \iffontsexist{Fira Sans Light,%
+ Fira Sans Light Italic,%
+ Fira Sans,%
+ Fira Sans Italic}{%
+ \setsansfont[BoldFont={Fira Sans}]{Fira Sans Light}%
+ }{%
+ \iffontsexist{Fira Sans Light OT,%
+ Fira Sans Light Italic OT,%
+ Fira Sans OT,%
+ Fira Sans Italic OT}{%
+ \setsansfont[BoldFont={Fira Sans OT}]{Fira Sans Light OT}%
+ }{%
+ \PackageWarning{beamerthememetropolis}{%
+ Could not find Fira Sans fonts%
+ }
+ }
+ }
+ \iffontsexist{Fira Mono, Fira Mono Bold}{%
+ \setmonofont{Fira Mono}%
+ }{%
+ \iffontsexist{Fira Mono OT, Fira Mono Bold OT}{%
+ \setmonofont{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{plain 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}
+\endinput
+%%
+%% End of file `beamerfontthememetropolis.sty'.
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
new file mode 100644
index 00000000000..982e50e7f56
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerinnerthememetropolis.sty
@@ -0,0 +1,345 @@
+%%
+%% 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}[2015/12/04 Metropolis inner theme]
+\RequirePackage{etoolbox}
+\RequirePackage{calc}
+\RequirePackage{pgfopts}
+\RequirePackage{tikz}
+\pgfkeys{
+ /metropolis/inner/block/.cd,
+ .is choice,
+ transparent/.code=\setlength{\@metropolis@blockskip}{0ex},
+ fill/.code=\setlength{\@metropolis@blockskip}{1ex},
+}
+\pgfkeys{
+ /metropolis/inner/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\MakeLowercase%
+ \setbeamerfont{title}{shape=\scshape}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat title=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@titleformat\MakeUppercase%
+ \setbeamerfont{title}{shape=\normalfont}
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat title=allcaps can lead to problems%
+ }
+ },
+}
+\pgfkeys{
+ /metropolis/inner/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\MakeLowercase%
+ \setbeamerfont{subtitle}{shape=\scshape}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat subtitle=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@subtitleformat\MakeUppercase%
+ \setbeamerfont{subtitle}{shape=\normalfont}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat subtitle=allcaps can lead to problems%
+ }
+ },
+}
+\pgfkeys{
+ /metropolis/inner/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/inner/sectionpage/.cd,
+ .is choice,
+ none/.code=\@metropolis@sectionpage@none,
+ simple/.code=\@metropolis@sectionpage@simple,
+ progressbar/.code=\@metropolis@sectionpage@progressbar,
+}
+\newcommand{\@metropolis@inner@setdefaults}{
+ \pgfkeys{/metropolis/inner/.cd,
+ sectionpage=progressbar,
+ block=transparent,
+ titleformat title=regular,
+ titleformat subtitle=regular,
+ titleformat section=regular,
+ }
+}
+\def\@metropolis@titleformat#1{#1}
+\def\@metropolis@subtitleformat#1{#1}
+\def\@metropolis@sectiontitleformat#1{#1}
+\patchcmd{\sectionentry}
+ {\def\insertsectionhead{#2}}
+ {\def\insertsectionhead{\@metropolis@sectiontitleformat{#2}}}
+ {}
+ {\PackageError{beamerinnerthememetropolis}{Patching section title failed}}
+\patchcmd{\beamer@section}
+ {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
+ {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
+ \@metropolis@sectiontitleformat{#1}}}}
+ {}
+ {\PackageError{beamerinnerthememetropolis}{Patching section title failed}}
+\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]{\titlepage}
+ \fi
+}
+\def\titlepage{%
+ \usebeamertemplate{title page}
+}
+\setbeamertemplate{title graphic}{
+ \vbox to 0pt {
+ \vspace*{2em}
+ \inserttitlegraphic%
+ }%
+ \nointerlineskip%
+}
+\setbeamertemplate{title}{
+ \raggedright%
+ \linespread{1.0}%
+ \@metropolis@titleformat{\inserttitle}%
+ \par%
+ \vspace*{0.5em}
+}
+\setbeamertemplate{subtitle}{
+ \@metropolis@subtitleformat{\insertsubtitle}%
+ \par%
+ \vspace*{0.5em}
+}
+\setbeamertemplate{title separator}{
+ \begin{tikzpicture}
+ \draw[fg, fill=fg] (0,0) rectangle (\textwidth, 0.4pt);
+ \end{tikzpicture}%
+ \par%
+}
+\setbeamertemplate{author}{
+ \vspace*{2em}
+ \insertauthor%
+ \par%
+ \vspace*{0.25em}
+}
+\setbeamertemplate{date}{
+ \insertdate%
+ \par%
+}
+\setbeamertemplate{institute}{
+ \vspace*{3mm}
+ \insertinstitute%
+ \par%
+}
+\newcommand{\@metropolis@sectionpage@none}{
+ \AtBeginSection{
+ % intenionally empty
+ }
+}
+\defbeamertemplate{section page}{simple}{
+ \centering
+ \usebeamercolor[fg]{section title}
+ \usebeamerfont{section title}
+ \insertsectionhead\\
+}
+\newcommand{\@metropolis@sectionpage@simple}{
+ \setbeamertemplate{section page}[simple]
+ \AtBeginSection{
+ \ifbeamer@inframe
+ \sectionpage
+ \else
+ \frame[plain,c]{\sectionpage}
+ \fi
+ }
+}
+\defbeamertemplate{section page}{progressbar}{
+ \centering
+ \begin{minipage}{22em}
+ \usebeamercolor[fg]{section title}
+ \usebeamerfont{section title}
+ \insertsectionhead\\[-1ex]
+ \usebeamertemplate*{progress bar in section page}
+ \end{minipage}
+ \par
+}
+\newcommand{\@metropolis@sectionpage@progressbar}{
+ \setbeamertemplate{section page}[progressbar]
+ \AtBeginSection{
+ \ifbeamer@inframe
+ \sectionpage
+ \else
+ \frame[plain,c]{\sectionpage}
+ \fi
+ }
+}
+\newlength{\metropolis@progressonsectionpage}
+\setbeamertemplate{progress bar in section page}{
+ \setlength{\metropolis@progressonsectionpage}{%
+ \textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
+ }%
+ \begin{tikzpicture}
+ \draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt);
+ \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressonsectionpage, 0.4pt);
+ \end{tikzpicture}%
+}
+\def\inserttotalframenumber{100}
+\newlength{\@metropolis@blockskip}
+\setbeamertemplate{block begin}{%
+ \setlength{\parskip}{\@metropolis@parskip}
+ \vspace*{1ex}
+ \begin{beamercolorbox}[%
+ ht=2.4ex,
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip]{block title}
+ \usebeamerfont*{block title}\insertblocktitle%
+ \end{beamercolorbox}%
+ \vspace*{-1pt}
+ \usebeamerfont{block body}%
+ \begin{beamercolorbox}[%
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip,
+ vmode]{block body}%
+}
+\setbeamertemplate{block end}{%
+ \end{beamercolorbox}
+ \vspace*{0.2ex}
+}
+\setbeamertemplate{block alerted begin}{%
+ \setlength{\parskip}{\@metropolis@parskip}
+ \vspace*{1ex}
+ \begin{beamercolorbox}[%
+ ht=2.4ex,
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip]{block title alerted}
+ \usebeamerfont*{block title alerted}\insertblocktitle%
+ \end{beamercolorbox}%
+ \vspace*{-1pt}
+ \usebeamerfont{block body alerted}%
+ \begin{beamercolorbox}[%
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip,
+ vmode]{block body alerted}%
+}
+\setbeamertemplate{block alerted end}{%
+ \end{beamercolorbox}
+ \vspace*{0.2ex}
+}
+\setbeamertemplate{block example begin}{%
+ \setlength{\parskip}{\@metropolis@parskip}
+ \vspace*{1ex}
+ \begin{beamercolorbox}[%
+ ht=2.4ex,
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip]{block title example}
+ \usebeamerfont*{block title example}\insertblocktitle%
+ \end{beamercolorbox}%
+ \vspace*{-1pt}
+ \usebeamerfont{block body example}%
+ \begin{beamercolorbox}[%
+ dp=1ex,
+ leftskip=\@metropolis@blockskip,
+ rightskip=\@metropolis@blockskip,
+ vmode]{block body example}%
+}
+\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{}%
+}
+\@metropolis@inner@setdefaults
+\ProcessPgfPackageOptions{/metropolis/inner}
+\endinput
+%%
+%% End of file `beamerinnerthememetropolis.sty'.
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty
new file mode 100644
index 00000000000..5115715e72e
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerouterthememetropolis.sty
@@ -0,0 +1,158 @@
+%%
+%% 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}[2015/12/04 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}%
+ }
+ },
+}
+\pgfkeys{
+ /metropolis/outer/titleformat frame/.cd,
+ .is choice,
+ regular/.code={%
+ \let\@metropolis@frametitleformat\@empty%
+ \setbeamerfont{frametitle}{shape=\normalfont}%
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}%
+ }
+ },
+ smallcaps/.code={%
+ \let\@metropolis@frametitleformat\@empty%
+ \setbeamerfont{frametitle}{shape=\scshape}%
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz}%
+ }
+ },
+ allsmallcaps/.code={%
+ \let\@metropolis@frametitleformat\MakeLowercase%
+ \setbeamerfont{frametitle}{shape=\scshape}%
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{abcdefghijklmnopqrstuvwxyz}%
+ }
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat frame=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@frametitleformat\MakeUppercase%
+ \setbeamerfont{frametitle}{shape=\normalfont}
+ \renewcommand{\@metropolis@frametitlestrut}{%
+ \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZ}%
+ }
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat frame=allcaps can lead to problems%
+ }
+ },
+}
+\newcommand{\@metropolis@outer@setdefaults}{
+ \pgfkeys{/metropolis/outer/.cd,
+ numbering=counter,
+ progressbar=none,
+ titleformat frame=regular,
+ }
+}
+\setbeamertemplate{navigation symbols}{}
+\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}%
+ \hfill%
+ \usebeamerfont{page number in head/foot}%
+ \usebeamertemplate*{frame numbering}
+ \end{beamercolorbox}%
+}
+\def\@metropolis@frametitleformat#1{#1}
+\patchcmd{\beamer@@frametitle}
+ {\beamer@ifempty{#2}{}{%
+ \gdef\insertframetitle{{#2\ifnum\beamer@autobreakcount>0\relax{}\space%
+ \usebeamertemplate*{frametitle continuation}\fi}}%
+ \gdef\beamer@frametitle{#2}%
+ \gdef\beamer@shortframetitle{#1}%
+ }}
+ {\beamer@ifempty{#2}{}{%
+ \gdef\insertframetitle{{\@metropolis@frametitleformat{#2}\ifnum%
+ \beamer@autobreakcount>0\relax{}\space%
+ \usebeamertemplate*{frametitle continuation}\fi}}%
+ \gdef\beamer@frametitle{#2}%
+ \gdef\beamer@shortframetitle{#1}%
+ }}
+ {}
+ {\PackageError{beamerouterthememetropolis}{Patching frame title failed}}
+\newlength{\@metropolis@frametitlestrut}
+\defbeamertemplate{frametitle}{plain}{%
+ \nointerlineskip%
+ \begin{beamercolorbox}[%
+ wd=\paperwidth,%
+ sep=1.5ex,%
+ ]{frametitle}%
+ \@metropolis@frametitlestrut\insertframetitle\@metropolis@frametitlestrut%
+ \end{beamercolorbox}%
+}
+\newlength{\metropolis@progressinheadfoot}
+\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}
+ \begin{tikzpicture}
+ \draw[bg, fill=bg] (0,0) rectangle (\paperwidth, 0.4pt);
+ \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressinheadfoot, 0.4pt);
+ \end{tikzpicture}%
+ \end{beamercolorbox}
+}
+\@metropolis@outer@setdefaults
+\ProcessPgfPackageOptions{/metropolis/outer}
+\endinput
+%%
+%% End of file `beamerouterthememetropolis.sty'.
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty
new file mode 100644
index 00000000000..b5bfd43baa4
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/beamerthememetropolis.sty
@@ -0,0 +1,113 @@
+%%
+%% 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}[2015/12/04 Metropolis Beamer theme]
+\RequirePackage{etoolbox}
+\RequirePackage{pgfopts}
+\newcommand{\metroset}[1]{\pgfkeys{/metropolis/.cd,#1}}
+\pgfkeys{/metropolis/.cd,
+ .search also={
+ /metropolis/inner,
+ /metropolis/outer,
+ /metropolis/color,
+ },
+ block/.code=\pgfkeysalso{
+ inner/block=#1,
+ color/block=#1,
+ },
+}
+\pgfkeys{
+ /metropolis/titleformat plain/.cd,
+ .is choice,
+ regular/.code={%
+ \let\@metropolis@plaintitleformat\@empty%
+ \setbeamerfont{plain title}{shape=\normalfont}%
+ },
+ smallcaps/.code={%
+ \let\@metropolis@plaintitleformat\@empty%
+ \setbeamerfont{plain title}{shape=\scshape}%
+ },
+ allsmallcaps/.code={%
+ \let\@metropolis@plaintitleformat\MakeLowercase%
+ \setbeamerfont{plain title}{shape=\scshape}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat plain=allsmallcaps can lead to problems%
+ }
+ },
+ allcaps/.code={%
+ \let\@metropolis@plaintitleformat\MakeUppercase%
+ \setbeamerfont{plain title}{shape=\normalfont}%
+ \PackageWarning{beamerthememetropolis}{%
+ Be aware that titleformat plain=allcaps can lead to problems%
+ }
+ },
+}
+\pgfkeys{
+ /metropolis/titleformat/.code=\pgfkeysalso{
+ inner/titleformat title=#1,
+ inner/titleformat subtitle=#1,
+ inner/titleformat section=#1,
+ outer/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,
+ }
+}
+\useinnertheme{metropolis}
+\useoutertheme{metropolis}
+\usecolortheme{metropolis}
+\usefonttheme{metropolis}
+\AtEndPreamble{%
+ \@ifpackageloaded{pgfplots}{%
+ \RequirePackage{pgfplotsthemetol}
+ }{}
+}
+\def\@metropolis@plaintitleformat#1{#1}
+\newcommand{\plain}[2][]{%
+ \begingroup
+ \setbeamercolor{background canvas}{
+ use=palette primary,
+ parent=palette primary
+ }
+ \begin{frame}[c]{#1}
+ \begin{center}
+ \usebeamercolor[fg]{palette primary}
+ \usebeamerfont{plain title}
+ \@metropolis@plaintitleformat{#2}
+ \end{center}
+ \end{frame}
+ \endgroup
+}
+\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
+\@metropolis@setdefaults
+\ProcessPgfOptions{/metropolis}
+\endinput
+%%
+%% End of file `beamerthememetropolis.sty'.
diff --git a/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty b/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty
new file mode 100644
index 00000000000..05f4383de2a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/beamertheme-metropolis/pgfplotsthemetol.sty
@@ -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}
+ [2015/06/16 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'.
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index ad34a3a38ef..599b5ee190a 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -72,8 +72,9 @@ my @TLP_working = qw(
bbcard bbding bbm bbm-macros bbold bbold-type1 bchart bclogo
beamer beamer2thesis beamer-FUBerlin beamer-tut-pt beamer-verona
beameraudience beamerdarkthemes beamerposter
- beamersubframe beamertheme-upenn-bc
- beamerthemejltree beamerthemephnompenh beamerthemenirma
+ beamersubframe beamertheme-metropolis beamertheme-upenn-bc
+ beamerthemejltree beamerthemephnompenh
+ beamerthemenirma
beebe begingreek begriff belleek bengali
bera berenisadf besjournals bestpapers betababel beton
bewerbung bez123 bezos bgreek bgteubner bguq bhcexam
diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds
index b99890b80cb..8f17cab6bed 100755
--- a/Master/tlpkg/libexec/ctan2tds
+++ b/Master/tlpkg/libexec/ctan2tds
@@ -150,7 +150,8 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'beamer', "&MAKEbeamer",
'beamer2thesis', "&MAKEflatten",
'beamer-contrib', "die 'skipping, use subdirs'",
- 'beamertheme-upenn-bc',"&MAKEflatten",
+ 'beamertheme-metropolis', "&MAKEflatten",
+ 'beamertheme-upenn-bc', "&MAKEflatten",
'beebe', "die 'skipping, MAKEbeebe needs work, sorry'",
'belleek', "die 'skipping, need to fix my*.fdd, sorry'",
'bengali', "&MAKEflatten",
@@ -687,6 +688,7 @@ chomp ($Build = `cd $Master/../Build/source && pwd`);
'metaobj', "&MAKEflatten",
'metapost', "die 'skipping, core binary'",
'metauml', "&MAKEmetauml",
+ 'metropolis', "die 'skipping, use beamertheme-metropolis'",
'mff', "die 'skipping, noinfo license'",
'mflogo-font', "&MAKEflatten",
'mftoeps', "die 'skipping, bat-only (mirror.ctan.org/graphics/MF-PS)'",
diff --git a/Master/tlpkg/tlpsrc/beamertheme-metropolis.tlpsrc b/Master/tlpkg/tlpsrc/beamertheme-metropolis.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/beamertheme-metropolis.tlpsrc
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 83e2a6d87f7..048bde1f674 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -62,6 +62,7 @@ depend beameraudience
depend beamerdarkthemes
depend beamerposter
depend beamersubframe
+depend beamertheme-metropolis
depend beamertheme-upenn-bc
depend beamerthemejltree
depend beamerthemenirma