Preamble.txt
1 | %%Small modification to get \AMC@loc@none also on simple questions |
---|---|
2 | %%A small macro \add@end to add the \AMC@loc@none (with the correct truth value) to every question |
3 | \def\add@end{% |
4 | \ifAMCune@bonne\alafin\wrongchoice{\AMC@loc@none}\else% |
5 | \ifAMC@postcorrect\alafin\wrongchoice{\AMC@loc@none}\else\alafin\correctchoice{\AMC@loc@none}\fi\fi} |
6 | %%I copy choices to redefine it later |
7 | \let\@ldchoices\choices |
8 | \let\end@ldchoices\endchoices |
9 | %%I redefine choices by adding add@end |
10 | \renewenvironment{choices}{% |
11 | \begin{@ldchoices}} |
12 | {\add@end\end{@ldchoices}} |
13 | %%I copy question to redefine it later |
14 | \let\@ldquestion\question |
15 | \let\end@ldquestion\endquestion |
16 | %%I redefine question setting \AMCune@bonne to false |
17 | \renewenvironment{question}{ |
18 | \AMCune@bonnefalse |
19 | \begin{@ldquestion}} |
20 | {\end{@ldquestion}} |
21 | \makeatother |