Cleaned up some syntax and added nooffset option.

Could resolve #17.
This commit is contained in:
Johann Dahm 2015-01-29 17:18:55 -05:00
parent 1469af008c
commit 810b13b460
3 changed files with 27 additions and 22 deletions

View File

@ -69,5 +69,4 @@
\fi
\mode
<all>
\mode<all>

View File

@ -9,7 +9,7 @@
\ProvidesPackage{beamerfontthememetropolis}
\usepackage[no-math]{fontspec}
\RequirePackage[no-math]{fontspec}
\defaultfontfeatures{Mapping=tex-text}

View File

@ -12,14 +12,20 @@
%{{{ --- Options ----------------------
\newif\if@useTitleProgressBar
\@useTitleProgressBarfalse
\DeclareOptionBeamer{useTitleProgressBar}{\@useTitleProgressBartrue}
\newif\if@protectFrameTitle
\@protectFrameTitlefalse
\DeclareOptionBeamer{protectframetitle}{\@protectFrameTitletrue}
\DeclareOptionBeamer{blockbg}{\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}}
\@useTitleProgressBarfalse
\@protectFrameTitlefalse
\newlength{\@mtheme@voffset}
\setlength{\@mtheme@voffset}{2em}
\DeclareOptionBeamer{useTitleProgressBar}{\@useTitleProgressBartrue}
\DeclareOptionBeamer{protectframetitle}{\@protectFrameTitletrue}
\DeclareOptionBeamer{blockbg}{%
\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}%
}
\DeclareOptionBeamer{nooffset}{\setlength{\@mtheme@voffset}{0em}}
\DeclareOptionBeamer*{%
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
@ -27,14 +33,16 @@
\ProcessOptionsBeamer
%}}}
\mode<presentation>
%{{{ --- Packages ---------------------
\usepackage[no-math]{fontspec}
\usepackage{etoolbox}
\usepackage{tikz}
\usepackage{pgfplots}
\RequirePackage[no-math]{fontspec}
\RequirePackage{etoolbox}
\RequirePackage{tikz}
\RequirePackage{pgfplots}
\usetikzlibrary{backgrounds}
\usetikzlibrary{calc}
@ -42,7 +50,6 @@
\usecolortheme{metropolis}
\usefonttheme{metropolis}
%}}}
%{{{ --- Titlepage --------------------
@ -145,7 +152,7 @@
}%
}
\fi
% }}}
%}}}
%{{{ --- Commands ---------------------
\newcommand{\insertsectionHEAD}{%
@ -236,8 +243,9 @@
\progressbar@titleprogressbar
\end{beamercolorbox}
\fi
\vspace{2em}
\vspace{\@mtheme@voffset}
}
%}}}
%{{{ --- pgfplots ---------------------
@ -355,15 +363,13 @@
%}}}
%}}}
\mode<all>
\mode
<all>
% {{{ misc
%{{{ misc
\let\otp\titlepage
\renewcommand{\titlepage}{\otp\addtocounter{framenumber}{-1}}
\newcommand{\mreducelistspacing}{\vspace{-\topsep}}
\linespread{1.15}
%}}}