Erreur "! You can't use `\relax' after \the." Latex (Bug #889)


Added by Anthony OLLIVIER 10 months ago. Updated 10 months ago.


Status:Closed Start date:08/28/2023
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:-

Description

Bonjour,

Je ne comprends pas pourquoi mon fichier tex ci-dessous ne compile pas.

L'erreur "! You can't use `\relax' after \the" s'affiche

Par contre, dès que je commente la ligne \restitutegroupe{tout}, plus d'erreur mais la question et les réponses ne s'affichent pas ...

\documentclass[a4paper]{article}

\usepackage[utf8x]{inputenc}    
\usepackage[T1]{fontenc}

\usepackage[francais,bloc,completemulti]{automultiplechoice} 

%===================
\begin{document}
%===================

\element{categorie2}{
  \begin{questionmult}{cat2-quest1}\bareme{formula=NBC-0.5*NMC} 
Que peut-on dire de la valeur de $ln(4)$ ?
     \begin{reponseshoriz}
      \bonne{est inférieur à $ln(5)$}
      \bonne{est positif}
      \mauvaise{est négatif}
    \end{reponseshoriz} 
  \end{questionmult}
}

\exemplaire{2}{    

      \centering\large\bf Exemple de QCM   

\cleargroup{tout}
\melangegroupe{categorie2}\copygroup[0]{categorie2}{tout}
\restituegroupe{tout}

}

\end{document}

Merci pour votre future éventuelle aide


tex_de_base_math.log (26 kB) Anthony OLLIVIER, 08/28/2023 10:00 pm

tex_de_base.tex (701 Bytes) Anthony OLLIVIER, 08/28/2023 10:00 pm


History

Updated by Alexis Bienvenüe 10 months ago

Copier zéro éléments d'un groupe vers un autre ne fonctionne pas.
Il vous faut en copier un nombre strictement positif, ou bien tous.

\copygroup{categorie2}{tout}

Updated by Alexis Bienvenüe 10 months ago

  • Status changed from New to Feedback

Updated by Alexis Bienvenüe 10 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF