From 507ab77bcff99a274e1094a8efbc6d47f6f3af9f Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Tue, 6 Jul 2021 09:58:03 +0200 Subject: [PATCH] update --- commun/commun.sty | 49 ++++++++++++++++++++++------------------- shortcuts/shortcuts.sty | 4 ++-- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/commun/commun.sty b/commun/commun.sty index 1fc4cd9..5ad5ea9 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -72,6 +72,7 @@ % maths \RequirePackage{amsmath, amsthm, amsfonts, amssymb} +% \RequirePackage{amsmath, amsthm, amssymb} \RequirePackage{tkz-euclide} \usetikzlibrary{arrows, calc, positioning, shapes.geometric, shadows, snakes, tikzmark} \RequirePackage{calc} @@ -304,32 +305,34 @@ % \definecolor{friendlybg}{HTML}{F0F0F0} -\newminted[python]{python}{style=bw, - fontsize=\small, - bgcolor=white, - highlightcolor=white, - autogobble, - frame=none, - % breaklines, - escapeinside=||, - xleftmargin=0em, - xrightmargin=0em, - numbersep=.2em} +\newif\ifplastex\plastexfalse +\ifplastex + \newminted[python]{python}{style=bw, + fontsize=\small, + bgcolor=white, + highlightcolor=white, + autogobble, + frame=none, + % breaklines, + escapeinside=||, + xleftmargin=0em, + xrightmargin=0em, + numbersep=.2em} -\newmintinline{python}{style=bw, - fontsize=\small, - bgcolor=white, - highlightcolor=white, - autogobble, - encoding=utf8} + \newmintinline{python}{style=bw, + fontsize=\small, + bgcolor=white, + highlightcolor=white, + autogobble, + encoding=utf8} -\renewcommand{\theFancyVerbLine}{ - \sffamily\black{\bfseries{\scriptsize\arabic{FancyVerbLine}}}} - -\AtBeginEnvironment{minted}{\dontdofcolorbox} -\def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}} -\xpatchcmd{\inputminted}{\minted@fvset}{\minted@fvset\dontdofcolorbox}{}{} + \renewcommand{\theFancyVerbLine}{ + \sffamily\black{\bfseries{\scriptsize\arabic{FancyVerbLine}}}} + \AtBeginEnvironment{minted}{\dontdofcolorbox} + \def\dontdofcolorbox{\renewcommand\fcolorbox[4][]{##4}} + \xpatchcmd{\inputminted}{\minted@fvset}{\minted@fvset\dontdofcolorbox}{}{} +\fi %-- diff --git a/shortcuts/shortcuts.sty b/shortcuts/shortcuts.sty index fe0c50b..796becd 100644 --- a/shortcuts/shortcuts.sty +++ b/shortcuts/shortcuts.sty @@ -125,10 +125,10 @@ % double quoting %% -\NewDocumentCommand \og { }{ +\providecommand{\og}{ << } -\NewDocumentCommand \fg { }{ +\providecommand{\fg}{ >> }