fin du hack moche

Cette révision appartient à :
Yann Salmon
2018-10-16 22:24:42 +02:00
Parent 350b9ec876
révision b2d145b643

Voir le fichier

@@ -47,6 +47,11 @@
{\IfValueT{##1}{\begingroup\setlength\columnseprule{0pt}\begin{multicols}{##1}}\begin{enumerate}\renewcommand\theenumi{\Alph{enumi}}}{\end{enumerate}\IfValueT{##1}{\end{multicols}\endgroup}}} {\IfValueT{##1}{\begingroup\setlength\columnseprule{0pt}\begin{multicols}{##1}}\begin{enumerate}\renewcommand\theenumi{\Alph{enumi}}}{\end{enumerate}\IfValueT{##1}{\end{multicols}\endgroup}}}
\def\setthe#1{\@ifnextchar[{\setthei{#1}}{}}
\def\setthei#1[#2]{%
\expandafter\let\expandafter\@temp\csname the#1\endcsname
\toks@\expandafter{\@temp}%
\expandafter\xdef\csname the#1\endcsname{\expandafter\noexpand\csname the#2\endcsname\@thmcountersep\the\toks@}}
@@ -74,7 +79,7 @@
\edef\@temp{\noexpand\newcounter{question}\resetlevel}\@temp \edef\@temp{\noexpand\newcounter{question}\resetlevel}\@temp
\specialcomment{question}{\refstepcounter{question}\begingroup\def\ProcessCutFile{}}{\endgroup} \specialcomment{question}{\refstepcounter{question}\begingroup\def\ProcessCutFile{}}{\endgroup}
\newtheorem{corrige}{Question} \newtheorem{corrige}{Question}
\def\thequestion{\thesection.\arabic{question}} %% hack moche à améliorer \edef\@temp{\noexpand\setthe{question}\resetlevel}\@temp
\let\thecorrige\thequestion \let\thecorrige\thequestion
% %
\newcounter{qcm} \newcounter{qcm}