I use a free software to test my pupils. (here the link http://home.gna.org/auto-qcm/).
The author modified some instructions and created some news:
Code: Select all
\newcount\AMCid@etud\AMCid@etud=0
Code: Select all
\def\AMClabel#1{\expandafter\label{\the\AMCid@etud-#1}}
Code: Select all
\def\AMCref#1{\expandafter\ref{\the\AMCid@etud-#1}}
Code: Select all
\def\AMCpageref#1{\expandafter\pageref{\the\AMCid@etud-#1}}
Code: Select all
\newcommand{\AMCqlabel}[1]{%
\protected@write\@auxout{}{\string\newlabel{\the\AMCid@etud-#1}{{\arabic{AMCquestionaff}}{\thepage}}}%
When i want to label a question, i type
Code: Select all
\AMCqlabel{questa}, \AMCqlabel{questb}
If i refer to many questions, i have to type
Code: Select all
\AMCref{questa},\AMCref{questb} or \AMCpageref{questa}
I asked the author a solution and he advised me to load the package cleveref but it does not work.
So, do you have an idea to sort the numbers with latex.
Thanks et regards.