fix basefiles add minted option

This commit is contained in:
Спицын Андрей 2018-02-17 21:08:05 +03:00
parent e54cbc9509
commit 8f4282051e
1 changed files with 11 additions and 0 deletions

View File

@ -26,6 +26,9 @@
\newif\if@doSectionPage
\@doSectionPagefalse
\DeclareOption{nosectionpages}{\@doSectionPagetrue}
\newif\if@dominted
\@domintedfalse
\DeclareOption{minted}{\@domintedtrue}
\ProcessOptions
\mode<presentation>
@ -133,6 +136,8 @@
% HACK: by doing so, Beamer replacements are disabled, and fontspec can effectively use Flama everywhere.
% Without it, digits are typeset using a serif font.
\if@doBasicFont
\else
\usepackage{lmodern}
% General
@ -145,6 +150,10 @@
%\setsansfont{FlamaLight.otf}%
\fi
\renewcommand\UrlFont{\bf}
% Titlepage
\setbeamerfont{title}{size=\fontsize{20}{20}}
@ -311,6 +320,7 @@
{\end{beamercolorbox}\vskip\smallskipamount}
%%%%%%%%%%%%%%%%%%%%%%%%%% Syntax coloring with minted %%%%%%%%%%%%%%%%%%%%
\if@dominted
\RequirePackage[cache]{minted}
\renewcommand{\theFancyVerbLine}{
\sffamily\textcolor[rgb]{0.5,0.5,0.5}{\scriptsize\arabic{FancyVerbLine}}}
@ -342,6 +352,7 @@
xleftmargin=1.8em}
\newmintinline[xml]{xml}{fontsize=\small}
\fi
%---------------------------------------------------------------------