Counter for right answers

Added by Sylow 23 5 months ago

[Liquid Syntax Error] Tag '{%' was not properly terminated with regexp: /\%\}/
I have posted this question on the french part too, but without success. I am trying to use the INVALID variable also for questions instead of only for questionmult, and to do this I am trying a wrap around the usual definition of \AMC@fin@rep. While trying to understand the code \newcommand\AMC@fin@rep{% \ifAMCcomplete@multi\ifAMCtype@multi% \lastchoices\AMCrep@count=-1% \ifAMCune@bonne\wrongchoice{\@aucune}\else% \ifAMC@postcorrect\wrongchoice{\@aucune}\else\correctchoice{\@aucune}\fi% \fi\fi\fi\AMCrep@fini} I realised that it should contain a counter for the number of wrong/right answers, but I could not identify it. Both \ifAMCune@bonne et \ifAMC@postcorrect does not seem to d the job. So my question is: what is the counter for the number of right answers?

Replies (1)

RE: Counter for right answers - Added by Sylow 23 5 months ago

I have found a solution, I think, but I'd be glad to know if it is correct. I attach a .txt file with the new preamble.

Thank you, Sylow

Preamble.txt (823 Bytes)

(1-1/1)