plus besoin de skipcorrige + références à l'énoncé dans le corrigé
Cette révision appartient à :
@@ -19,6 +19,7 @@
|
||||
\usepackage{xfrac}
|
||||
\usepackage{xparse}
|
||||
\usepackage{comment}
|
||||
\usepackage{xr}
|
||||
|
||||
\newif\ifcorrige
|
||||
\def\corr{\filigrane{\Huge CORRIG\'E --- CORRIG\'E}\global\corrigetrue}
|
||||
@@ -29,9 +30,9 @@
|
||||
\IfEndWith{\jobname}{\detokenize{-ENONCE}}{\let\corr\relax\let\corrseul\relax}{}
|
||||
\IfEndWith{\jobname}{\detokenize{-PROF}}{\corr\let\corr\relax\let\corrseul\relax}{}
|
||||
\IfEndWith{\jobname}{\detokenize{-CORRIGE}}{\corrseul\let\corr\relax\let\corrseul\relax}{}
|
||||
\StrCut{\jobname}{\detokenize{-}}\basejobname\dummy
|
||||
|
||||
\def\pasenonce{
|
||||
\excludecomment{question}
|
||||
\excludecomment{enonce}
|
||||
\excludecomment{qcmrep}
|
||||
\excludecomment{qcm}
|
||||
@@ -39,7 +40,6 @@
|
||||
|
||||
\def\avecenonce{\newenvironment{enonce}{}{}
|
||||
\edef\@temp{\noexpand\newtheorem{question}{Question}\resetlevel}\@temp
|
||||
\def\skipcorrige{}
|
||||
\newtheorem{qcm}{QCM}
|
||||
%
|
||||
\NewDocumentEnvironment{qcmrep}{o}
|
||||
@@ -58,13 +58,17 @@
|
||||
\newenvironment{qcmcorr}{\begin{mdframed}[backgroundcolor=gray!20, skipbelow=1ex]}{\end{mdframed}}
|
||||
\avecenonce
|
||||
\else\ifcorrigeseul
|
||||
\externaldocument{\basejobname-ENONCE}
|
||||
\immediate\typeout{Mode corrige}
|
||||
\makeatletter\IfStrEq{\@subtitle}{}{}{\subtitle{Corrigé}}\makeatother
|
||||
\pasenonce
|
||||
\edef\@temp{\noexpand\newtheorem{corrige}{Question}\resetlevel}\@temp
|
||||
\edef\@temp{\noexpand\newcounter{question}\resetlevel}\@temp
|
||||
\specialcomment{question}{\refstepcounter{question}\begingroup\def\ProcessCutFile{}}{\endgroup}
|
||||
\newtheorem{corrige}{Question}
|
||||
\def\thequestion{\thesection.\arabic{question}} %% hack moche à améliorer
|
||||
\let\thecorrige\thequestion
|
||||
\newtheorem{qcmcorr}{QCM}
|
||||
\newenvironment{comcorrige}{}{}
|
||||
\def\skipcorrige{\stepcounter{corrige}}
|
||||
\else
|
||||
\immediate\typeout{Mode enonce}
|
||||
\excludecomment{corrige}
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur