I use esami
package for MCQ exams, but it doesn't allow align equations on the answers, i.e. between \Ans0 ... \eAns
. The MWE is
\documentclass[spanish,twoside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage[shuffle,zzz]{esami} %
\def\numcompiti{1}%%% The number of the versions
\date{2014/07/22}%%% THE DATE IN THE FORMAT AAAA/M/D
\usepackage{amsmath}
\begin{document}
%\testversioni
%\pagestyle{esame}
\whiledo{\thevers<\numcompiti}{\stepvers%
\FPeval\seme{round((\thenomefile+(3*\thevers)):0)}
\randomi=\seme
\permuta
\begin{test}
\begin{questions}
\selectallproblems{MCQuestion}
\end{questions}
\end{test}
\closevers
}
\end{document}
with zzz
an empty file, and MCQuestion file is
\newproblem{%
\item Equivalent to $\left\{\begin{aligned}x+y&=1000 \\ 25x+35y&=50\end{aligned}\right.$
\begin{answers}{2}
\bChoices[random]
\Ans1 $\left\{\begin{aligned}5x+5y=5000 \\ 5x+7y=10\end{aligned}\right.$ \eAns
\Ans0 $\left\{\begin{aligned}x+y=1 \\ 25y+35y=150\end{aligned}\right.$ \eAns
\eChoices
\end{answers}
}
This MWE works perfectly, but if I add the &
symbol in orden to align equations, I have an error
\Ans1 $\left\{\begin{aligned}5x+5y&=5000 \\ 5x+7y&=10\end{aligned}\right.$ \eAns
How can I fix this problem?