This commit is contained in:
Jeff Lance 2021-07-06 09:58:03 +02:00
parent 38b946e18e
commit 507ab77bcf
2 changed files with 28 additions and 25 deletions

View File

@ -72,6 +72,7 @@
% maths % maths
\RequirePackage{amsmath, amsthm, amsfonts, amssymb} \RequirePackage{amsmath, amsthm, amsfonts, amssymb}
% \RequirePackage{amsmath, amsthm, amssymb}
\RequirePackage{tkz-euclide} \RequirePackage{tkz-euclide}
\usetikzlibrary{arrows, calc, positioning, shapes.geometric, shadows, snakes, tikzmark} \usetikzlibrary{arrows, calc, positioning, shapes.geometric, shadows, snakes, tikzmark}
\RequirePackage{calc} \RequirePackage{calc}
@ -304,7 +305,9 @@
% %
\definecolor{friendlybg}{HTML}{F0F0F0} \definecolor{friendlybg}{HTML}{F0F0F0}
\newminted[python]{python}{style=bw, \newif\ifplastex\plastexfalse
\ifplastex
\newminted[python]{python}{style=bw,
fontsize=\small, fontsize=\small,
bgcolor=white, bgcolor=white,
highlightcolor=white, highlightcolor=white,
@ -316,20 +319,20 @@
xrightmargin=0em, xrightmargin=0em,
numbersep=.2em} numbersep=.2em}
\newmintinline{python}{style=bw, \newmintinline{python}{style=bw,
fontsize=\small, fontsize=\small,
bgcolor=white, bgcolor=white,
highlightcolor=white, highlightcolor=white,
autogobble, autogobble,
encoding=utf8} encoding=utf8}
\renewcommand{\theFancyVerbLine}{ \renewcommand{\theFancyVerbLine}{
\sffamily\black{\bfseries{\scriptsize\arabic{FancyVerbLine}}}} \sffamily\black{\bfseries{\scriptsize\arabic{FancyVerbLine}}}}
\AtBeginEnvironment{minted}{\dontdofcolorbox} \AtBeginEnvironment{minted}{\dontdofcolorbox}
\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}} \def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}}
\xpatchcmd{\inputminted}{\minted@fvset}{\minted@fvset\dontdofcolorbox}{}{} \xpatchcmd{\inputminted}{\minted@fvset}{\minted@fvset\dontdofcolorbox}{}{}
\fi
%-- %--

View File

@ -125,10 +125,10 @@
% double quoting % double quoting
%% %%
\NewDocumentCommand \og { }{ \providecommand{\og}{
<< <<
} }
\NewDocumentCommand \fg { }{ \providecommand{\fg}{
>> >>
} }