From 29e603a9bdb033c20f948005aee8cfcb566cf53f Mon Sep 17 00:00:00 2001 From: Yann Salmon Date: Wed, 22 May 2019 22:11:13 +0200 Subject: [PATCH] environnements exclus de la version prof --- latex/inputTD.sty | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/latex/inputTD.sty b/latex/inputTD.sty index 57bbf96..a339c86 100644 --- a/latex/inputTD.sty +++ b/latex/inputTD.sty @@ -48,11 +48,6 @@ \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}{} -\def\pasenonce{ - \excludecomment{enonce} - \excludecomment{qcmrep} - } - \def\avecenonce{\newenvironment{enonce}{}{} \edef\@temp{\noexpand\newtheorem{question}{Question}\resetlevel}\@temp \newtheorem{qcm}{QCM} @@ -75,8 +70,10 @@ \immediate\typeout{Mode enonce} \excludecomment{corrige} \excludecomment{comcorrige} + \excludecomment{comcorrige*} \excludecomment{qcmcorr} \avecenonce + \newenvironment{enonce*}{}{} \or %% 1 \immediate\typeout{Mode corrige} % @@ -89,7 +86,9 @@ \let\r@lastpage\real@lastpage % \subtitle{Corrigé} - \pasenonce + \excludecomment{enonce} + \excludecomment{enonce*} + \excludecomment{qcmrep} \edef\@temp{\noexpand\newcounter{question}\resetlevel}\@temp \specialcomment{question}{\refstepcounter{question}\begingroup\def\ProcessCutFile{}}{\endgroup} \newtheorem{corrige}{Question} @@ -101,6 +100,7 @@ \newtheorem{qcmcorr}{QCM} \let\theqcmcorr\theqcm \newenvironment{comcorrige}{}{} + \newenvironment{comcorrige*}{}{} \or %% 2 \immediate\typeout{Mode professeur} \subtitle{Corrigé} @@ -108,6 +108,8 @@ \newenvironment{comcorrige}{\begin{mdframed}[backgroundcolor=gray!20, skipbelow=1ex]}{\end{mdframed}} \newenvironment{qcmcorr}{\begin{mdframed}[backgroundcolor=gray!20, skipbelow=1ex]}{\end{mdframed}} \avecenonce + \excludecomment{enonce*} + \excludecomment{comcorrige*} \or %% 3 \subtitle{Corrigé} \edef\@temp{\noexpand\newtheorem{corrige}{Question}\resetlevel}\@temp