2015-06-16 08:13:19 +02:00
|
|
|
%% ---------------------------------------------------------------------------
|
|
|
|
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
|
|
|
|
%% contributors can be found at
|
2015-06-12 07:47:38 +02:00
|
|
|
%%
|
2015-06-16 08:13:19 +02:00
|
|
|
%% https://github.com/matze/mtheme/graphs/contributors
|
2015-06-12 07:47:38 +02:00
|
|
|
%%
|
2015-06-16 08:13:19 +02:00
|
|
|
%% and the original template was based on the HSRM theme by Benjamin Weiss.
|
2015-06-12 07:47:38 +02:00
|
|
|
%%
|
2015-06-16 08:13:19 +02:00
|
|
|
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
|
|
|
|
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
|
2015-06-12 07:47:38 +02:00
|
|
|
%% ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
\documentclass{ltxdoc}
|
|
|
|
%\OnlyDescription
|
|
|
|
|
2015-06-23 01:46:59 +02:00
|
|
|
\usepackage{parskip}
|
2015-06-12 07:47:38 +02:00
|
|
|
\usepackage{setspace}
|
2015-07-10 14:30:21 +02:00
|
|
|
\usepackage{xspace}
|
2015-06-12 07:47:38 +02:00
|
|
|
\onehalfspacing
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
\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
|
|
|
|
\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.%
|
|
|
|
}
|
|
|
|
}
|
2015-06-12 10:24:24 +02:00
|
|
|
|
2015-06-12 07:47:38 +02:00
|
|
|
\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,
|
2015-10-24 20:00:48 +02:00
|
|
|
morekeywords={usetheme,institute,maketitle,@metropolis@titleformat,%
|
|
|
|
plain,setbeamercolor,metroset,setsansfont,setmonofont},
|
2015-06-12 07:47:38 +02:00
|
|
|
}
|
|
|
|
\lstMakeShortInline|
|
2015-06-12 10:20:35 +02:00
|
|
|
|
2015-06-12 07:47:38 +02:00
|
|
|
\usepackage[colorlinks=true,
|
|
|
|
linkcolor=mLightBrown,
|
|
|
|
menucolor=mLightBrown,
|
|
|
|
pagecolor=mLightBrown,
|
|
|
|
urlcolor=mLightBrown]{hyperref}
|
|
|
|
|
2015-06-23 01:46:59 +02:00
|
|
|
\newcommand{\DescribeOption}[4]{
|
2015-06-23 09:13:46 +02:00
|
|
|
\DescribeMacro{#1}
|
|
|
|
\begin{minipage}[t]{\textwidth}
|
|
|
|
\textit{\textbf{\textcolor{mLightGreen}{#2}}}\dotfill\,#3\par
|
|
|
|
\begingroup
|
2015-07-10 14:21:41 +02:00
|
|
|
\vspace{0.5em}#4\par
|
2015-06-23 09:13:46 +02:00
|
|
|
\endgroup
|
|
|
|
\end{minipage}
|
2015-06-23 01:46:59 +02:00
|
|
|
}
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
\newcommand{\themename}{\textbf{\textsc{metropolis}}\xspace}
|
2015-07-10 14:30:21 +02:00
|
|
|
|
2015-11-20 09:31:58 +01:00
|
|
|
\GetFileInfo{beamerthememetropolis.dtx}
|
2015-09-22 09:39:02 +02:00
|
|
|
\title{Modern Beamer Presentations with the \themename{} package}
|
2015-06-12 07:47:38 +02:00
|
|
|
\author{Matthias Vogelgesang \\ \url{matthias.vogelgesang@gmail.com}}
|
2015-06-16 17:14:05 +02:00
|
|
|
\date{v0.x.x}
|
2015-06-12 07:47:38 +02:00
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\maketitle
|
2015-09-22 09:39:02 +02:00
|
|
|
\tableofcontents
|
2015-06-12 07:47:38 +02:00
|
|
|
|
|
|
|
\section{Introduction}
|
2015-07-10 14:30:21 +02:00
|
|
|
|
2015-09-22 09:39:02 +02:00
|
|
|
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
|
2015-06-23 01:46:59 +02:00
|
|
|
\href{https://www.mozilla.org/en-US/styleguide/products/firefox-os/typeface/}
|
|
|
|
{Fira Sans}, a gorgeous typeface commissioned by Mozilla and designed by
|
2015-09-22 09:39:02 +02:00
|
|
|
\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.
|
2015-10-24 20:00:48 +02:00
|
|
|
However, \themename{} can also be used with other typefaces and \LaTeX{} build
|
2015-09-22 09:39:02 +02:00
|
|
|
systems.
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-09-22 09:39:02 +02:00
|
|
|
\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!
|
2015-06-12 07:47:38 +02:00
|
|
|
|
|
|
|
|
|
|
|
\section{Getting Started}
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
% \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.
|
|
|
|
|
2015-09-22 09:39:02 +02:00
|
|
|
\subsection{Installing from GitHub}
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-09-22 09:39:02 +02:00
|
|
|
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{m}| in
|
|
|
|
the preamble of your Beamer document.
|
|
|
|
\end{description}
|
|
|
|
|
|
|
|
\themename{} uses the Make build system to offer the following installation
|
|
|
|
options for advanced users:
|
2015-06-16 14:40:16 +02:00
|
|
|
|
|
|
|
\begin{description}
|
2015-09-22 09:39:02 +02:00
|
|
|
\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.
|
2015-06-16 14:40:16 +02:00
|
|
|
\end{description}
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
\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.
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-09-22 09:39:02 +02:00
|
|
|
\subsection{A Minimal Example}
|
|
|
|
|
|
|
|
The following code shows a minimal example of a Beamer presentation using \themename.
|
|
|
|
|
|
|
|
\begin{lstlisting}
|
|
|
|
\documentclass{beamer}
|
2015-11-20 09:31:58 +01:00
|
|
|
\usetheme{metropolis} % Use metropolis theme
|
2015-09-22 09:39:02 +02:00
|
|
|
\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}
|
|
|
|
|
|
|
|
|
2015-06-16 14:40:16 +02:00
|
|
|
\subsection{Dependencies}
|
|
|
|
|
|
|
|
\begin{itemize}
|
|
|
|
\item XeLaTeX
|
|
|
|
\item \href{https://github.com/mozilla/Fira}{Fira Sans} and Mono font
|
|
|
|
\item TikZ
|
|
|
|
\end{itemize}
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
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.
|
2015-06-16 14:40:16 +02:00
|
|
|
|
|
|
|
\subsection{Pandoc}
|
|
|
|
|
2015-06-17 09:18:08 +02:00
|
|
|
To use this theme with \href{http://johnmacfarlane.net/pandoc/}{Pandoc}-based
|
|
|
|
presentations, you can run the following command
|
2015-06-16 14:40:16 +02:00
|
|
|
|
|
|
|
\begin{lstlisting}
|
|
|
|
$ pandoc -t beamer --latex-engine=xelatex -V theme:m -o output.pdf input.md
|
|
|
|
\end{lstlisting}
|
|
|
|
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-06-16 14:40:16 +02:00
|
|
|
|
2015-06-12 07:47:38 +02:00
|
|
|
|
2015-06-16 14:40:16 +02:00
|
|
|
\section{Customization}
|
|
|
|
\subsection{Package options}
|
2015-06-23 01:46:59 +02:00
|
|
|
The theme provides a number of options. The options use a key=value interface.
|
2015-06-23 09:13:46 +02:00
|
|
|
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
|
2015-11-20 09:31:58 +01:00
|
|
|
\textsc{metropolis} in the preamble of the presentation.
|
2015-06-23 14:35:04 +02:00
|
|
|
\begin{lstlisting}
|
2015-11-20 09:31:58 +01:00
|
|
|
\usetheme[<key=value list>]{metropolis}
|
2015-06-23 01:46:59 +02:00
|
|
|
\end{lstlisting}
|
2015-07-22 10:46:11 +02:00
|
|
|
Or you can set them at any time with the |\metroset| macro.
|
2015-06-23 14:35:04 +02:00
|
|
|
\begin{lstlisting}
|
2015-10-27 15:50:02 +01:00
|
|
|
\metroset{<key=value list>}
|
2015-06-16 14:40:16 +02:00
|
|
|
\end{lstlisting}
|
2015-06-23 09:13:46 +02:00
|
|
|
To set an option on a specific sub-package only you have to add the
|
|
|
|
corresponding prefix (inner, outer, color), e.g.
|
2015-06-23 14:35:04 +02:00
|
|
|
\begin{lstlisting}
|
2015-10-27 15:50:02 +01:00
|
|
|
\metroset{inner/block=fill}
|
2015-06-23 09:13:46 +02:00
|
|
|
\end{lstlisting}
|
2015-06-23 14:35:04 +02:00
|
|
|
The list of options is structured as shown in the following example.
|
2015-06-16 14:40:16 +02:00
|
|
|
|
2015-06-23 09:13:46 +02:00
|
|
|
\DescribeOption{key}{list of possible values}{default value}{
|
|
|
|
A short description of the option.
|
2015-06-23 01:46:59 +02:00
|
|
|
}
|
2015-06-17 09:14:55 +02:00
|
|
|
|
2015-06-23 14:35:04 +02:00
|
|
|
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{everytitleformat}{regular, lowercase, uppercase}{lowercase}{
|
|
|
|
Shortcut option to change the case style of all titles together.
|
|
|
|
}
|
|
|
|
|
2015-08-18 17:24:24 +02:00
|
|
|
\DescribeOption{plaintitleformat}{regular, lowercase, uppercase}{lowercase}{
|
2015-06-23 14:35:04 +02:00
|
|
|
Control the case style of the plain title.
|
|
|
|
}
|
2015-06-23 09:13:46 +02:00
|
|
|
|
|
|
|
\subsubsection{Inner theme}
|
2015-06-23 01:46:59 +02:00
|
|
|
\DescribeOption{block}{transparent, fill}{transparent}{
|
|
|
|
This option controls the block background. It can either be filled with a
|
|
|
|
light grey or be transparent.
|
|
|
|
}
|
2015-06-23 14:35:04 +02:00
|
|
|
|
2015-10-23 11:47:22 +02:00
|
|
|
\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.
|
2015-06-23 09:13:46 +02:00
|
|
|
}
|
2015-06-23 14:35:04 +02:00
|
|
|
|
|
|
|
\DescribeOption{titleformat}{regular, lowercase, uppercase}{lowercase}{
|
|
|
|
Control the case style of the title.
|
|
|
|
}
|
|
|
|
|
|
|
|
\DescribeOption{sectiontitleformat}{regular, lowercase, uppercase}{lowercase}{
|
|
|
|
Control the case style of the section title.
|
|
|
|
}
|
|
|
|
|
2015-06-23 09:13:46 +02:00
|
|
|
\subsubsection{Outer theme}
|
2015-06-23 01:46:59 +02:00
|
|
|
\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.
|
|
|
|
}
|
2015-06-17 09:14:55 +02:00
|
|
|
|
2015-07-10 08:09:39 +02:00
|
|
|
\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|).
|
2015-06-23 01:46:59 +02:00
|
|
|
}
|
2015-06-17 09:14:55 +02:00
|
|
|
|
2015-06-23 14:35:04 +02:00
|
|
|
\DescribeOption{frametitleformat}{regular, lowercase, uppercase}{lowercase}{
|
|
|
|
Control the case style of the frame title.
|
|
|
|
}
|
|
|
|
|
2015-06-23 09:13:46 +02:00
|
|
|
\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.
|
|
|
|
}
|
2015-06-23 14:35:04 +02:00
|
|
|
|
2015-06-23 01:46:59 +02:00
|
|
|
\DescribeOption{background}{dark, light}{light}{
|
|
|
|
This option defines whether the background shall be dark and the foreground
|
|
|
|
be light or vice versa.
|
|
|
|
}
|
2015-06-16 14:40:16 +02:00
|
|
|
|
|
|
|
\subsection{Color Customization}
|
|
|
|
|
2015-07-10 14:30:21 +02:00
|
|
|
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:
|
2015-06-16 14:40:16 +02:00
|
|
|
\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
|
|
|
|
|
2015-06-23 14:35:04 +02:00
|
|
|
\begin{lstlisting}
|
2015-06-16 14:40:16 +02:00
|
|
|
\setbeamercolor{ ... }{ fg= ... , bg= ... }
|
|
|
|
\end{lstlisting}
|
2015-06-17 09:18:08 +02:00
|
|
|
in your preamble. For greater customization, you can redefine any of the other
|
2015-06-23 14:35:04 +02:00
|
|
|
stock beamer colors. In addition to the stock colors the theme defines a number
|
2015-07-10 14:30:21 +02:00
|
|
|
of \themename specific colors, which can also be redefined to your liking.
|
2015-06-16 14:40:16 +02:00
|
|
|
|
|
|
|
\begin{lstlisting}
|
2015-06-23 14:35:04 +02:00
|
|
|
\setbeamercolor{progress bar}{ ... }
|
|
|
|
\setbeamercolor{title separator}{ ... }
|
|
|
|
\setbeamercolor{progress bar in head/foot}{ ... }
|
|
|
|
\setbeamercolor{progress bar in section page}{ ... }
|
2015-06-16 14:40:16 +02:00
|
|
|
\end{lstlisting}
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
\subsection{Font Customization}
|
|
|
|
|
|
|
|
The default font for \themename{} is |Fira|. Yet this can be easily changed using
|
|
|
|
the standard font selection commands of the |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}
|
|
|
|
|
2015-06-16 14:40:16 +02:00
|
|
|
\subsection{Commands}
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
The \lstinline|\plain{title=[]}{<body>}| command sets a slide in plain dark colors which
|
2015-06-17 09:18:08 +02:00
|
|
|
can be useful to focus attention on a single sentence or image.
|
|
|
|
|
2015-06-17 09:46:30 +02:00
|
|
|
\subsection{Paul Tol's colors: a \texttt{pgfplots} theme}
|
2015-06-16 14:40:16 +02:00
|
|
|
|
2015-06-17 09:46:30 +02:00
|
|
|
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.
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-06-16 14:40:16 +02:00
|
|
|
|
2015-06-12 10:20:35 +02:00
|
|
|
\section{Known Issues}
|
|
|
|
|
2015-10-24 20:00:48 +02:00
|
|
|
The \lstinline|\plain| command does not work if you override the \textsc{metropolis}
|
2015-07-10 03:43:20 +02:00
|
|
|
color theme with the default beamer color theme |fly|.
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-06-12 10:20:35 +02:00
|
|
|
\section{License}
|
|
|
|
|
2015-06-17 09:18:08 +02:00
|
|
|
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.
|
|
|
|
|
2015-06-12 10:20:35 +02:00
|
|
|
|
2015-06-12 10:24:24 +02:00
|
|
|
|
2015-06-12 07:47:38 +02:00
|
|
|
\section{Implementation}
|
2015-06-17 09:18:08 +02:00
|
|
|
|
2015-11-20 09:31:58 +01:00
|
|
|
\DocInput{beamerthememetropolis.dtx}
|
2015-06-18 03:55:51 +02:00
|
|
|
\DocInput{beamerinnerthememetropolis.dtx}
|
2015-06-18 08:46:34 +02:00
|
|
|
\DocInput{beamerouterthememetropolis.dtx}
|
2015-06-12 07:47:38 +02:00
|
|
|
\DocInput{beamerfontthememetropolis.dtx}
|
|
|
|
\DocInput{beamercolorthememetropolis.dtx}
|
2015-06-17 08:05:14 +02:00
|
|
|
\DocInput{pgfplotsthemetol.dtx}
|
2015-06-12 07:47:38 +02:00
|
|
|
|
|
|
|
\end{document}
|