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