# Solutions on a different page using handout

I'm using the following handout file: http://rogercortesi.com/portf/latex/handout.cls

And I realized that when I use the \showsoln function, it just shows SOLUTION in bold blue letters at the top and bottom. I have narrowed it down to the fact that the .cls file does not contain instructions to display solutions.

His documentation for the handout class is in the file directory: http://rogercortesi.com/portf/latex

Is there a way I can fix this, or do you suggest another document class I can use to display solutions on another page? I've looked around on StackExchange, and I haven't found anything that would suit my fairly-beginner knowledge of LaTeX.

Here's what I have, as far as code goes..

 \documentclass[soln]{handout}

\SetInstructor{omitted instructor}
\SetCourseTitle{omitted course title}
\SetHandoutTitle{omitted handout title}

begin{document}
\maketitle

\begin{questions}
\item What is 1+1?
\soln{1.5in}{\framebox{$2$}.}

\item What is 2+2?
\soln{2in}{\framebox{$4$}.}
\end{questions}
% Here is where I tried to put \showsoln in.
% It worked, but it has the effect I described earlier.
\end{document}

• I use the exam class to make handouts but I do not gather solutions at the end. A search of TeX.SE reveals several ways to print solutions at the end, such as here. – Michael S Taylor Dec 27 '16 at 16:41
• The handout.cls seems to be a little bit aged, no apparent updates – user31729 Dec 27 '16 at 16:42
• Try \documentclass[solutions]{handout} – user31729 Dec 27 '16 at 16:52
• I tried that, it created a blank document. I looked in the .cls class for how to link the solutions doc to the questions, found nothing. – Anon E. Muss Dec 27 '16 at 16:53
• @Anon E.Muss: You have \documentclass[soln]{handout} ... and it is not compilable. After correcting it and using solution instead of soln it works. The class file does not complain about the unknown soln option, unfortunately – user31729 Dec 27 '16 at 17:05

The handout class does not have a soln option, the only declared option is solution.

The macro \showsoln shows the 'solutions'.

In general, such packages (or classes) as exam, exsheets etc. should be preferred for those purposes.

\documentclass[solution]{handout}

\SetInstructor{omitted instructor}
\SetCourseTitle{omitted course title}
\SetHandoutTitle{omitted handout title}

\begin{document}
\maketitle

\begin{questions}
\item What is $1+1$?
\soln{1.5in}{\framebox{$2$}.}

\item What is $2+2$?
\soln{2in}{\framebox{$4$}.}
\end{questions}
\showsoln
\end{document}