From 7c2ebb1e2cf925e39d5a4afee6f2bd350ad01894 Mon Sep 17 00:00:00 2001 From: Yann Salmon Date: Wed, 18 Aug 2021 13:48:44 +0200 Subject: [PATCH] Update inputTD.sty and paquets.sty --- latex/inputTD.sty | 5 +++++ latex/paquets.sty | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/latex/inputTD.sty b/latex/inputTD.sty index 0502599..bd675ea 100644 --- a/latex/inputTD.sty +++ b/latex/inputTD.sty @@ -47,6 +47,11 @@ \IfEndWith{\jobname}{\detokenize{-PROF}}{\corr\let\corr\relax\let\corrseul\relax\StrCut{\jobname}{\detokenize{-PROF}}\basejobname\dummy}{} \IfEndWith{\jobname}{\detokenize{-CORRIGE}}{\corrseul\let\corr\relax\let\corrseul\relax\StrCut{\jobname}{\detokenize{-CORRIGE}}\basejobname\dummy}{} + +\NewDocumentEnvironment{enumq}{o} +{\IfValueT{#1}{\begin{multicols}{#1}}\begin{enumerate}\renewcommand\theenumi{\alph{enumi}}\@ifundefined{thequestion}{\renewcommand\p@enumi{\thecorrige.}}{\renewcommand\p@enumi{\thequestion.}}}{\end{enumerate}\IfValueT{#1}{\end{multicols}}} + + \def\avecenonce{\newenvironment{enonce}{}{} \edef\@temp{\noexpand\newtheorem{question}{Question}\resetlevel}\@temp \newtheorem{qcm}{QCM} diff --git a/latex/paquets.sty b/latex/paquets.sty index ba80cdf..677f785 100644 --- a/latex/paquets.sty +++ b/latex/paquets.sty @@ -116,8 +116,6 @@ tex.print([[\addbibresource{]]..dirname(status["filename"])..[[commun.bib}]]) \RequirePackage{multicol} -\newenvironment{enumq}{\begin{enumerate}\renewcommand*{\theenumi}{\alph{enumi}}\@ifundefined{thequestion}{\renewcommand*\p@enumi{\thecorrige.}}{\renewcommand*\p@enumi{\thequestion.}}}{\end{enumerate}} -\newenvironment{multiq}[1]{\begin{multicols}{#1}\begin{enumq}}{\end{enumq}\end{multicols}} \RequirePackage[nolinks]{qrcode} \def\marginqrcode#1{\marginparsep=2pt\marginparwidth=.9cm\marginpar{\qrcode[height=.9cm,level=L]{#1}}}