I am using the answers package to build a series of exercises. The problem i have encountered is when going from
\item $ 5x^2-x \geq 0 $
\begin{sol}
$x \geq 1, x \leq 0$
\end{sol}
to
\uppg{$x<-2, x>2$}{$-9 < x < 9$}
Where uppg looks like
\newcommand{\uppg}[2]
{
\item #1
\begin{sol}
\#2
\end{sol}
}
I keep getting errors because it reads the \begin{sol} in uppg but ignores the \end{sol} and just keeps reading in the file until it realizes it's misstakes and throws an error. How can i resolve this?
