La Te X Metropolis Beamer Theme Manual

LaTeX%20Metropolis%20Beamer%20Theme%20Manual

User Manual: Pdf

Open the PDF directly: View PDF PDF.
Page Count: 48

    
 
 
matthias.vogelgesang@gmail.com
  

 
 
     
     
     
   
   
 
    
    
    
    
    
    
    
    
     
   
    
pgfplots  
   
     
   
    
  
    
       
      
  
  
    
    
   
    
    
     
     
    
   
    
    
    
     
   
      
    
     
     
    
   
     
  
     
     
    
     
     
     
     
     
    
   
    
    
    
     
  pgfplots   
 
            
           
            
       
            
              
              
   
          
             
   
        
     
  
           
               
           
 
   
           
          
              
            
tlmgr update --all
              
sudo tlmgr update --all
          tlmgr    
            
 
             Fira  
          
   
            
     
      
     git clone       
      
      make sty    
  
   source/metropolistheme.ins
   *.sty       
      make install  
 *.sty         
        \usetheme{metropolis}
      
           
  
make sty     
make doc    
make demo          
make all     
make clean      make all
make install        
make uninstall        
   
           

\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}
 
    beamer      
tikz
pgfopts
etoolbox
calc
ifxetex
ifluatex
        Fira Sans  Fira Mono
     
      
      
     
   Fira Sans  Fira Mono   
    Fira Sans  Fira Sans OT    
     
 
           

$ pandoc -t beamer --latex-engine=xelatex -V theme:
metropolis -o output.pdf input.md
 
  
             
            
        
\usetheme[option1=value1, option2=value2, ...]{metropolis}
            
\metroset 
\metroset{option1=newvalue1, option2=newvalue2, ...}
           
list of possible values  
     
option key
  
regular, smallcaps, allsmallcaps, allcaps  
             
        
            

titleformat
regular, smallcaps, allsmallcaps, allcaps  
       titleformat 
titleformat plain
  
none, simple, progressbar  
         simple     
     progressbar  none    
 
sectionpage
none, simple, progressbar 
             
simple  progressbar      section page   
       subsection page     
           
      sectionpage=none    
   
subsectionpage
  
none, counter, fraction 
             
 none  counter          
 fraction
numbering
none, head, frametitle, foot 
           head   
  foot       frametitle
progressbar
  
transparent, fill 
         theorem
 example
block
dark, light  
            
 
background
  
regular, smallcaps, allsmallcaps, allcaps  
           
 titleformat 
titleformat title
titleformat subtitle
titeformat section
titleformat frame
  
             
              
   
normal text    
alerted text         
example text         
            
\setbeamercolor{ ... }{ fg= ... , bg= ... }
            
             
           
\setbeamercolor{progress bar}{ ... }
\setbeamercolor{title separator}{ ... }
\setbeamercolor{progress bar in head/foot}{ ... }
\setbeamercolor{progress bar in section page}{ ... }
  
      Fira       
      fontspec      
  Ubuntu         
   
\setsansfont{Ubuntu}
\setmonofont{Ubuntu Mono}
              
               

\setsansfont[BoldFont={Fira Sans SemiBold}]{Fira Sans Book}
   
  fontspec        
               
          
\usefonttheme{professionalfonts} % required for mathspec
\usepackage{mathspec}
\setsansfont[BoldFont={Fira Sans},
Numbers={OldStyle}]{Fira Sans Light}
\setmathsfont(Digits)[Numbers={Lining, Proportional}]{Fira
Sans Light}
 
  
           
            
         standout   
\begin{frame}[standout]
Thank you!
\end{frame}
pgfplots 
            
     
 
             
mlineplot             
 
mbarplot          mlineplot    

horizontal mbarplot    
disable thousands separator      
   
             
             
         
 
             
   pgfplotsthemetol   
pgfplots     
  
  
             
              
appendixnumberbeamer       \appendix 
   
          
   
 
  
           smallcaps 
allsmallcaps            Fira Sans
          
    
      

    allsmallcaps  allcaps     
        \MakeLowercase  \MakeUppercase
     
    \\     \MakeLowercase 
\MakeUppercase  
      \MakeLowercase  
            
  allsmallcaps  
\MakeLowercase  \MakeUppercase      \scshape
           

           
     \mathbb  \mathcal   
      
 allsmallcaps  allcaps         
           
     
            
crane  seahorse             
         
          
  
             
 \usetheme{metropolis}       
          
    seahorse      
          
\usetheme{metropolis}
\usecolortheme{seahorse}
            
  

\useoutertheme{metropolis}
\useinnertheme{metropolis}
\usefonttheme{metropolis}
\usecolortheme{seahorse} % or your preferred color theme
             
          
           whale  
     
    
    [show notes on second screen]     
   
          
               
 
             
              
\makeatletter
\def\beamer@framenotesbegin{% at beginning of slide
\usebeamercolor[fg]{normal text}
\gdef\beamer@noteitems{}%
\gdef\beamer@notes{}%
}
\makeatother
 
         
           
             
            


 
   
             
          
       
  
\RequirePackage{etoolbox}
\RequirePackage{pgfopts}
 
        
\pgfkeys{/metropolis/.cd,
.search also={
/metropolis/inner,
/metropolis/outer,
/metropolis/color,
/metropolis/font,
}
 }
titleformat plain          
 \pgfkeys{
 /metropolis/titleformat plain/.cd,
 .is choice,
 regular/.code={%
 \let\metropolis@plaintitleformat\@empty%
 \setbeamerfont{standout}{shape=\normalfont}%
 },
 smallcaps/.code={%
 \let\metropolis@plaintitleformat\@empty%
 \setbeamerfont{standout}{shape=\scshape}%
 },

 allsmallcaps/.code={%
 \let\metropolis@plaintitleformat\MakeLowercase%
 \setbeamerfont{standout}{shape=\scshape}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat plain=allsmallcaps can lead to prob-
lems%
 }
 },
 allcaps/.code={%
 \let\metropolis@plaintitleformat\MakeUppercase%
 \setbeamerfont{standout}{shape=\normalfont}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat plain=allcaps can lead to problems%
 }
 },
 }
titleformat             
    
 \pgfkeys{
 /metropolis/titleformat/.code=\pgfkeysalso{
 font/titleformat title=#1,
 font/titleformat subtitle=#1,
 font/titleformat section=#1,
 font/titleformat frame=#1,
 titleformat plain=#1,
 }
 }
           
        key=value 
 \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}
 tol   pgfplots     pgfplots  
 \AtEndPreamble{%
 \@ifpackageloaded{pgfplots}{%
 \RequirePackage{pgfplotsthemetol}
 }{}
 }
  
           
  
\metroset          
 \newcommand{\metroset}[1]{\pgfkeys{/metropolis/.cd,#1}}
\plain            
             titleformat plain

 \def\metropolis@plaintitleformat#1{#1}

 \newcommand{\plain}[2][]{%
 \PackageWarning{beamerthememetropolis}{%
 The syntax ‘\plain’ may be deprecated in a future ver-
sion of Metropolis.
 Please use a frame with [standout] instead.
}
 \begin{frame}[standout]{#1}
 \metropolis@plaintitleformat{#2}
 \end{frame}
 }
\mreducelistspacing
 \newcommand{\mreducelistspacing}{\vspace{-\topsep}}
   
 \metropolis@setdefaults
 \ProcessPgfOptions{/metropolis}
   
beamer           
       
    
    
     
   
   
  
 \RequirePackage{etoolbox}
 \RequirePackage{keyval}
 \RequirePackage{calc}
 \RequirePackage{pgfopts}
 \RequirePackage{tikz}

 
sectionpage          
 \pgfkeys{
 /metropolis/inner/sectionpage/.cd,
 .is choice,
 none/.code=\metropolis@disablesectionpage,
 simple/.code={\metropolis@enablesectionpage
 \setbeamertemplate{section page}[simple]},
 progressbar/.code={\metropolis@enablesectionpage
 \setbeamertemplate{section page}[progressbar]},
 }
sectionpage          
 \pgfkeys{
 /metropolis/inner/subsectionpage/.cd,
 .is choice,
 none/.code=\metropolis@disablesubsectionpage,
 simple/.code={\metropolis@enablesubsectionpage
 \setbeamertemplate{section page}[simple]},
 progressbar/.code={\metropolis@enablesubsectionpage
 \setbeamertemplate{section page}[progressbar]},
 }
\metropolis@inner@setdefaults       
 \newcommand{\metropolis@inner@setdefaults}{
 \pgfkeys{/metropolis/inner/.cd,
 sectionpage=progressbar,
 subsectionpage=none
 }
 }
  
title page                
  \subtitle            
 

 \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}
   \insertauthor        
    \author{...}        
             
 
 \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}
 }
    \maketitle  \titlepage    
title page        
          [plain]   
\@thanks        
\maketitle
\titlepage
            title page

 \def\maketitle{%
 \ifbeamer@inframe
 \titlepage
 \else
 \frame[plain,noframenumbering]{\titlepage}
 \fi
 }
 \def\titlepage{%
 \usebeamertemplate{title page}
 }

title graphic               
 
 \setbeamertemplate{title graphic}{
 \vbox to 0pt {
 \vspace*{2em}
 \inserttitlegraphic%
 }%
 \nointerlineskip%
 }
title       
 \setbeamertemplate{title}{
 \raggedright%
 \linespread{1.0}%
 \inserttitle%
 \par%
 \vspace*{0.5em}
 }
subtitle       
 \setbeamertemplate{subtitle}{
 \insertsubtitle%
\par%
 \vspace*{0.5em}
 }
title separator               
   
 \setbeamertemplate{title separator}{
 \begin{tikzpicture}
 \draw[fg, fill=fg] (0,0) rectangle (\textwidth, 0.4pt);
 \end{tikzpicture}%
 \par%
 }
author       

 \setbeamertemplate{author}{
\vspace*{2em}
 \insertauthor%
 \par%
 \vspace*{0.25em}
 }
date       
 \setbeamertemplate{date}{
 \insertdate%
 \par%
 }
institute       
 \setbeamertemplate{institute}{
 \vspace*{3mm}
 \insertinstitute%
 \par%
}
  
section page            
 \defbeamertemplate{section page}{simple}{
 \begin{center}
 \usebeamercolor[fg]{section title}
 \usebeamerfont{section title}
 \insertsectionhead\par
 \ifx\insertsubsection\@empty\else
 \usebeamercolor[fg]{subsection title}
 \usebeamerfont{subsection title}
 \insertsubsection
 \fi
 \end{center}
 }
 \defbeamertemplate{section page}{progressbar}{
 \centering

 \begin{minipage}{22em}
 \raggedright
 \usebeamercolor[fg]{section title}
 \usebeamerfont{section title}
 \insertsectionhead\\[-1ex]
 \usebeamertemplate*{progress bar in section page}
 \par
 \ifx\insertsubsection\@empty\else%
 \usebeamercolor[fg]{subsection title}%
 \usebeamerfont{subsection title}%
 \insertsubsection
 \fi
 \end{minipage}
 \par
 \vspace{\baselineskip}
 }
 \newcommand{\metropolis@disablesectionpage}{
 \AtBeginSection{
 % intentionally empty
 }
 }
 \newcommand{\metropolis@enablesectionpage}{
 \AtBeginSection{
 \ifbeamer@inframe
 \sectionpage
 \else
 \frame[plain,c,noframenumbering]{\sectionpage}
 \fi
 }
 }
subsection page              
   
 \setbeamertemplate{subsection page}{%
 \usebeamertemplate*{section page}
 }
 \newcommand{\metropolis@disablesubsectionpage}{
 \AtBeginSubsection{
 % intentionally empty

 }
 }
 \newcommand{\metropolis@enablesubsectionpage}{
 \AtBeginSubsection{
 \ifbeamer@inframe
 \subsectionpage
 \else
 \frame[plain,c,noframenumbering]{\subsectionpage}
 \fi
 }
 }
progress bar in section page              
          progress bar in head-
/foot
 \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}%
 }
     \insertframenumber      
\inserttotalframenumber          
    .aux  \inserttotalframenumber    
         \metropolis@progressonsectionpage
          
          \inserttotalframenumber
             
       
 \def\inserttotalframenumber{100}

  
block
block alerted
block example
           
            
\metropolis@block     
 \newlength{\metropolis@blocksep}
 \newlength{\metropolis@blockadjust}
 \setlength{\metropolis@blocksep}{0.75ex}
 \setlength{\metropolis@blockadjust}{0.25ex}
\providecommand{\metropolis@strut}{%
 \vphantom{ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz()}%
 }
 \newcommand{\metropolis@block}[1]{
 \par\vskip\medskipamount%
 \setlength{\parskip}{0pt}
                 
            
 colsep=0.75ex         
       colsep   
            
             
\ifx     
      alertblock  exampleblock  
         beamercolorbox  
  block title    
  block title          
   block title alerted       
     
 \ifbeamercolorempty[bg]{block title#1}{%
 \begin{beamercolorbox}[rightskip=0pt plus 4em]{block ti-
tle#1}}{%
 \ifbeamercolorempty[bg]{block title}{%
 \begin{beamercolorbox}[rightskip=0pt plus 4em]{block title#1}%
}%
 % \end{macrocode}
 %

 % Otherwise, if the |block title| has a background, we set the padding based
 % on |\metropolis@blockskip|. However, we have to visually com-
pensate for
 % the |\metropolis@strut| added to the block title (see below) by
 % subtracting |\metropolis@blockadjust| from the top and bot-
tom padding.
 %
 % \begin{macrocode}
 {%
 \begin{beamercolorbox}[
 sep=\dimexpr\metropolis@blocksep-\metropolis@blockadjust\relax,
 leftskip=\metropolis@blockadjust,
rightskip=\dimexpr\metropolis@blockadjust plus 4em\relax
 ]{block title#1}%
}}%
 % \end{macrocode}
 %
 % We can now set the contents of the |block title|. The zero-
width but
 % positive-height box |\metropolis@strut| ensures that the block ti-
tle box
 % has a consistent height, even if it lacks punctuation, ascen-
ders, or
 % descenders.
 %
 % \begin{macrocode}
 \usebeamerfont*{block title#1}%
 \metropolis@strut%
 \insertblocktitle%
 \metropolis@strut%
 \end{beamercolorbox}%
 % \end{macrocode}
 %
 % Next, we typeset the |block body|. This the code is simi-
lar to, but simpler
 % than, the |block title| code since we don’t need to ad-
just for any struts.
 %
 % \begin{macrocode}
 \nointerlineskip%

 \ifbeamercolorempty[bg]{block body#1}{%
 \begin{beamercolorbox}[vmode]{block body#1}}{
 \ifbeamercolorempty[bg]{block body}{%
 \begin{beamercolorbox}[vmode]{block body#1}%
 }{%
 \begin{beamercolorbox}[sep=\metropolis@blocksep, vmode]{block body#1}%
 \vspace{-\metropolis@parskip}
 }}%
 \usebeamerfont{block body#1}%
 \setlength{\parskip}{\metropolis@parskip}%
 }
     \metropolis@block    
     
 \setbeamertemplate{block begin}{\metropolis@block{}}
 \setbeamertemplate{block alerted begin}{\metropolis@block{ alerted}}
 \setbeamertemplate{block example begin}{\metropolis@block{ exam-
ple}}
 \setbeamertemplate{block end}{\end{beamercolorbox}\vspace*{0.2ex}}
 \setbeamertemplate{block alerted end}{\end{beamercolorbox}\vspace*{0.2ex}}
 \setbeamertemplate{block example end}{\end{beamercolorbox}\vspace*{0.2ex}}
   
 \setbeamertemplate{itemize items}{\textbullet}
 \setbeamertemplate{caption label separator}{: }
 \setbeamertemplate{caption}[numbered]
 
 \setbeamertemplate{footnote}{%
 \parindent 0em\noindent%
 \raggedright
 \usebeamercolor{footnote}\hbox to 0.8em{\hfil\insertfootnotemark}\insertfootnotetext\par%
 }
    
 \newlength{\metropolis@parskip}
 \setlength{\metropolis@parskip}{0.5em}

 \setlength{\parskip}{\metropolis@parskip}
 \linespread{1.15}
      c  almost   
               c
  \beamer@frametopskip  \beamer@framebottomskip 
            

 \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{}%
 }
  
            
       standout    \begin{frame}[standout] ... \end{frame}
standout         \define@key
  keyval          
   standout         
    
 \providebool{metropolis@standout}
 \define@key{beamerframe}{standout}[true]{%
 \booltrue{metropolis@standout}
 \begingroup
 \setkeys{beamerframe}{c}
 \setkeys{beamerframe}{noframenumbering}
 \ifbeamercolorempty[bg]{palette primary}{
 \setbeamercolor{background canvas}{
 use=palette primary,
 bg=-palette primary.fg
 }
 }{
 \setbeamercolor{background canvas}{
 use=palette primary,

 bg=palette primary.bg
 }
 }
 \centering
\usebeamercolor[fg]{palette primary}
 \usebeamerfont{standout}
 }
              
            
      
http://tex.stackexchange.com/questions/226319/   
 \endgroup  \beamer@reseteecodes       
   
 \apptocmd{\beamer@reseteecodes}{%
 \ifbool{metropolis@standout}{
 \endgroup
 \boolfalse{metropolis@standout}
 }{}
 }{}{}
   
 \metropolis@inner@setdefaults
\ProcessPgfPackageOptions{/metropolis/inner}
   
beamer           
           
  
 \RequirePackage{etoolbox}
 \RequirePackage{calc}
 \RequirePackage{pgfopts}

 
numbering          
 \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],
 }
progressbar             
 \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}%
 }
 },
 }
\metropolis@outer@setdefaults       

 \newcommand{\metropolis@outer@setdefaults}{
 \pgfkeys{/metropolis/outer/.cd,
 numbering=counter,
 progressbar=none,
 }
 }
   
  beamer       
       
 \setbeamertemplate{navigation symbols}{}
frame numbering              
    
 \defbeamertemplate{frame footer}{none}{}
 \defbeamertemplate{frame footer}{custom}[1]{ #1 }
 \defbeamertemplate{frame numbering}{none}{}
 \defbeamertemplate{frame numbering}{counter}{\insertframenumber}
 \defbeamertemplate{frame numbering}{fraction}{
 \insertframenumber/\inserttotalframenumber
 }
headline
footline
             
 \defbeamertemplate{headline}{plain}{}
 \defbeamertemplate{footline}{plain}{%
 \begin{beamercolorbox}[wd=\textwidth, sep=3ex]{footline}%
 \usebeamerfont{page number in head/foot}%
 \usebeamertemplate*{frame footer}
 \hfill%
 \usebeamertemplate*{frame numbering}
 \end{beamercolorbox}%
 }

 
frametitle             
 \newlength{\metropolis@frametitle@padding}
 \setlength{\metropolis@frametitle@padding}{2.2ex}
 \newcommand{\metropolis@frametitlestrut@start}{
 \rule{0pt}{\metropolis@frametitle@padding +%
 \totalheightof{%
 \ifcsdef{metropolis@frametitleformat}{\metropolis@frametitleformat X}{X}%
 }%
 }%
 }
 \newcommand{\metropolis@frametitlestrut@end}{
 \rule[-\metropolis@frametitle@padding]{0pt}{\metropolis@frametitle@padding}
 }
 \defbeamertemplate{frametitle}{plain}{%
 \nointerlineskip%
 \begin{beamercolorbox}[%
 wd=\paperwidth,%
 sep=0pt,%
 leftskip=\metropolis@frametitle@padding,%
 rightskip=\metropolis@frametitle@padding,%
 ]{frametitle}%
 \metropolis@frametitlestrut@start\insertframetitle\metropolis@frametitlestrut@end%
 \end{beamercolorbox}%
 }
progress bar in head/foot            
            
progress bar in section page
 \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}
 }
appendix         \appendix 
              
       appendixnumberbeamer
 \AtBeginDocument{%
 \apptocmd{\appendix}{%
 \pgfkeys{%
 /metropolis/outer/.cd,
 numbering=none,
 progressbar=none}
}{}{}
 }
   
 \metropolis@outer@setdefaults
 \ProcessPgfPackageOptions{/metropolis/outer}
   
beamer            
  
 \RequirePackage{etoolbox}
 \RequirePackage{ifxetex}
 \RequirePackage{ifluatex}
 \RequirePackage{pgfopts}

   
      
  
    
      Fira 
 \ifboolexpr{bool {xetex} or bool {luatex}}{
 \RequirePackage[no-math]{fontspec}
\checkfont         fontsnotfound  
 \newcounter{fontsnotfound}
 \newcommand{\checkfont}[1]{%
 \suppressfontnotfounderror=1%
\font\x = ”#1” at 10pt
 \selectfont
\ifx\x\nullfont%
 \stepcounter{fontsnotfound}%
\fi%
\suppressfontnotfounderror=0%
 }

\iffontsavailable   fontsnotfound    \checkfont     
      
 \newcommand{\iffontsavailable}[3]{%
 \setcounter{fontsnotfound}{0}%
 \expandafter\forcsvlist\expandafter%
 \checkfont\expandafter{#1}%
 \ifnum\value{fontsnotfound}=0%
 #2%
 \else%
 #3%
 \fi%
 }
             
  Fira Sans  Fira Mono         
               
       

 \iffontsavailable{Fira Sans Light,%
 Fira Sans Light Italic,%
 Fira Sans,%
 Fira Sans Italic}%
 {%
 \setsansfont[ItalicFont={Fira Sans Light Italic},%
 BoldFont={Fira Sans},%
 BoldItalicFont={Fira Sans Italic}]%
 {Fira Sans Light}%
 }{%
 \iffontsavailable{Fira Sans Light OT,%
 Fira Sans Light Italic OT,%
 Fira Sans OT,%
 Fira Sans Italic OT}%
 {%
 \setsansfont[ItalicFont={Fira Sans Light Italic OT},%
 BoldFont={Fira Sans OT},%
 BoldItalicFont={Fira Sans Italic OT}]%
 {Fira Sans Light OT}%
 }{%
 \PackageWarning{beamerthememetropolis}{%
 Could not find Fira Sans fonts%
 }
 }
 }
 \iffontsavailable{Fira Mono, Fira Mono Bold}{%
 \setmonofont[BoldFont={Fira Mono Medium}]{Fira Mono}%
 }{%
 \iffontsavailable{Fira Mono OT, Fira Mono Bold OT}{%
 \setmonofont[BoldFont={Fira Mono Medium OT}]{Fira Mono OT}%
 }{%
 \PackageWarning{beamerthememetropolis}{%
 Could not find Fira Mono fonts%
 }
 }
 }
 \AtBeginEnvironment{tabular}{%
 \addfontfeature{Numbers={Monospaced}}%
 }
 }{%

 \PackageWarning{beamerthememetropolis}{%
 You need to compile with XeLaTeX or LuaLaTeX to use the Fira fonts%
 }
 }
             

  
          
 
   
 \setbeamerfont{title}{size=\Large,%
 series=\bfseries}
 \setbeamerfont{author}{size=\small}
 \setbeamerfont{date}{size=\small}
 \setbeamerfont{section title}{size=\Large,%
 series=\bfseries}
 \setbeamerfont{block title}{size=\normalsize,%
 series=\bfseries}
 \setbeamerfont{block title alerted}{size=\normalsize,%
 series=\bfseries}
 \setbeamerfont*{subtitle}{size=\large}
 \setbeamerfont{frametitle}{size=\large,%
 series=\bfseries}
 \setbeamerfont{caption}{size=\small}
 \setbeamerfont{caption name}{series=\bfseries}
\setbeamerfont{description item}{series=\bfseries}
 \setbeamerfont{page number in head/foot}{size=\scriptsize}
 \setbeamerfont{bibliography entry author}{size=\normalsize,%
 series=\normalfont}
 \setbeamerfont{bibliography entry title}{size=\normalsize,%
 series=\bfseries}
 \setbeamerfont{bibliography entry location}{size=\normalsize,%
 series=\normalfont}
 \setbeamerfont{bibliography entry note}{size=\small,%
 series=\normalfont}
\setbeamerfont{standout}{size=\Large,%
 series=\bfseries}

   
titleformat title      
 \pgfkeys{
 /metropolis/font/titleformat title/.cd,
 .is choice,
 regular/.code={%
 \let\metropolis@titleformat\@empty%
 \setbeamerfont{title}{shape=\normalfont}%
 },
 smallcaps/.code={%
 \let\metropolis@titleformat\@empty%
 \setbeamerfont{title}{shape=\scshape}%
 },
allsmallcaps/.code={%
 \let\metropolis@titleformat\lowercase%
\setbeamerfont{title}{shape=\scshape}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat title=allsmallcaps can lead to prob-
lems%
 }
 },
 allcaps/.code={%
 \let\metropolis@titleformat\uppercase%
 \setbeamerfont{title}{shape=\normalfont}
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat title=allcaps can lead to problems%
 }
 },
 }
titleformat subtitle      
 \pgfkeys{
 /metropolis/font/titleformat subtitle/.cd,
 .is choice,
 regular/.code={%
 \let\metropolis@subtitleformat\@empty%
 \setbeamerfont{subtitle}{shape=\normalfont}%
 },

 smallcaps/.code={%
 \let\metropolis@subtitleformat\@empty%
 \setbeamerfont{subtitle}{shape=\scshape}%
 },
 allsmallcaps/.code={%
 \let\metropolis@subtitleformat\lowercase%
 \setbeamerfont{subtitle}{shape=\scshape}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat subtitle=allsmallcaps can lead to prob-
lems%
 }
 },
 allcaps/.code={%
 \let\metropolis@subtitleformat\uppercase%
 \setbeamerfont{subtitle}{shape=\normalfont}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat subtitle=allcaps can lead to prob-
lems%
 }
 },
 }
titleformat section       
 \pgfkeys{
 /metropolis/font/titleformat section/.cd,
 .is choice,
 regular/.code={%
 \let\metropolis@sectiontitleformat\@empty%
 \setbeamerfont{section title}{shape=\normalfont}%
 },
 smallcaps/.code={%
 \let\metropolis@sectiontitleformat\@empty%
 \setbeamerfont{section title}{shape=\scshape}%
 },
 allsmallcaps/.code={%
 \let\metropolis@sectiontitleformat\MakeLowercase%
 \setbeamerfont{section title}{shape=\scshape}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat section=allsmallcaps can lead to prob-

lems%
 }
 },
 allcaps/.code={%
 \let\metropolis@sectiontitleformat\MakeUppercase%
 \setbeamerfont{section title}{shape=\normalfont}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat section=allcaps can lead to prob-
lems%
 }
 },
 }
frametitleformat       
 \pgfkeys{
 /metropolis/font/titleformat frame/.cd,
 .is choice,
 regular/.code={%
 \let\metropolis@frametitleformat\@empty%
 \setbeamerfont{frametitle}{shape=\normalfont}%
 },
 smallcaps/.code={%
 \let\metropolis@frametitleformat\@empty%
 \setbeamerfont{frametitle}{shape=\scshape}%
},
 allsmallcaps/.code={%
 \let\metropolis@frametitleformat\MakeLowercase%
 \setbeamerfont{frametitle}{shape=\scshape}%
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat frame=allsmallcaps can lead to prob-
lems%
 }
 },
 allcaps/.code={%
 \let\metropolis@frametitleformat\MakeUppercase%
\setbeamerfont{frametitle}{shape=\normalfont}
 \PackageWarning{beamerthememetropolis}{%
 Be aware that titleformat frame=allcaps can lead to problems%
 }

 },
 }
titleformat aliases  titleformat title        \usetheme 
 
    
 \pgfkeys{
 /metropolis/font/.cd,
 titleformattitle/.code=\pgfkeysalso{titleformat title=#1},
 titleformatsubtitle/.code=\pgfkeysalso{titleformat subtitle=#1},
 titleformatsection/.code=\pgfkeysalso{titleformat section=#1},
 titleformatframe/.code=\pgfkeysalso{titleformat frame=#1},
 }
\metropolis@font@setdefaults       
\newcommand{\metropolis@font@setdefaults}{
 \pgfkeys{/metropolis/font/.cd,
titleformat title=regular,
 titleformat subtitle=regular,
titleformat section=regular,
 titleformat frame=regular,
 }
 }
           
 \def\metropolis@titleformat#1{#1}
 \def\metropolis@subtitleformat#1{#1}
 \def\metropolis@sectiontitleformat#1{#1}
 \def\metropolis@frametitleformat#1{#1}
             
    beamer      
           

 \patchcmd{\beamer@title}%
 {\def\inserttitle{#2}}%
 {\def\inserttitle{\metropolis@titleformat{#2}}}%
 {}%

 {\PackageError{beamerfontthememetropolis}{Patching title failed}}
 \patchcmd{\beamer@subtitle}%
 {\def\insertsubtitle{#2}}%
 {\def\insertsubtitle{\metropolis@subtitleformat{#2}}}%
 {}%
 {\PackageError{beamerfontthememetropolis}{Patching subtitle failed}}
 \patchcmd{\sectionentry}
 {\def\insertsectionhead{#2}}
 {\def\insertsectionhead{\metropolis@sectiontitleformat{#2}}}
 {}
 {\PackageError{beamerfontthememetropolis}{Patching section ti-
tle failed}}
 \patchcmd{\beamer@section}
 {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
 {\def\insertsectionhead{\hyperlink{Navigation\the\c@page}{%
 \metropolis@sectiontitleformat{#1}}}}
 {}
 {\PackageError{beamerfontthememetropolis}{Patching section ti-
tle failed}}
    \MakeLowercase  \MakeUppercase  
        \beamer@@frametitle
 \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{beamerfontthememetropolis}{Patching frame ti-
tle failed}}

   
 \metropolis@font@setdefaults
 \ProcessPgfPackageOptions{/metropolis/font}
   
  
 \RequirePackage{pgfopts}
 
block          theorem
 example
 \pgfkeys{
 /metropolis/color/block/.cd,
 .is choice,
 transparent/.code=\metropolis@block@transparent,
 fill/.code=\metropolis@block@fill,
 }
colors             
 
 \pgfkeys{
 /metropolis/color/background/.cd,
 .is choice,
 dark/.code=\metropolis@colors@dark,
 light/.code=\metropolis@colors@light,
 }
\metropolis@color@setdefaults       
 \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}
  
          normal text
alerted text  example text
 \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
 }
  
      itemize      
  normal text       normal text
         titlelike     
structure        beamercolorthemedefault.sty
 \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
 }
           
      progress bar      
             
          title separator
 \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
 }

    theorem  example    
    block=fill        
    normal text   block=transparent
            
  
 \newcommand{\metropolis@block@transparent}{
 \setbeamercolor{block title}{%
 use=normal text,
 fg=normal text.fg,
 bg=
 }
 \setbeamercolor{block body}{
 bg=
 }
 }
 \newcommand{\metropolis@block@fill}{
 \setbeamercolor{block title}{%
 use=normal text,
 fg=normal text.fg,
 bg=normal text.bg!80!fg
 }
 \setbeamercolor{block body}{
 use={block title, normal text},
 bg=block title.bg!50!normal text.bg
 }
 }
 \setbeamercolor{block title alerted}{%
 use={block title, alerted text},
 bg=block title.bg,
 fg=alerted text.fg
 }
 \setbeamercolor{block title example}{%
 use={block title, example text},
 bg=block title.bg,
 fg=example text.fg
 }
 \setbeamercolor{block body alerted}{use=block body, parent=block body}
 \setbeamercolor{block body example}{use=block body, parent=block body}


 \setbeamercolor{footnote}{fg=normal text.fg!90}
 \setbeamercolor{footnote mark}{fg=.}
   
 \metropolis@color@setdefaults
 \ProcessPgfPackageOptions{/metropolis/color}
 \mode<all>
  pgfplots 
     
 \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}
             
     
mbarplot cycle            
 \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},
 }
mlineplot cycle            
\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},
 }
            
   mlineplot  mbarplot         
  pgfplots            
         
 \pgfplotsset{
 compat=1.9,
mlineplot            
 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
horizontal mbarplot
            mbarplot    
  horizontal mbarplot       
          mbarplot base
 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          
 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={}
 },
 }


Navigation menu