I am writing a college math textbook using the memoir class. As with all textbooks there are lots of exercises scattered throughout, with solutions in the back. I want LaTeX to handle this for me, and I want to be able to write something like this:
Code: Select all
\begin{exercise)
< the text of the exercise, maybe with parts a), b),...>
\begin{solution}
< solution text >
\end{solution}
\end{exercise}
My point is to be able to write the exercise together with its solution at the same point in my input file and have LaTeX separate them for me and place the solution text somewhere else. Is this at all possible?
Best regards,
Bjørnar Larssen