3

I'm currently relying on the exam class to produce separate exercise sheets for questions and solutions. Is there a way to use that class to produce a third sheet with hints instead of full solutions, or a better alternative?

The structure of the unique tex file would be something like:

\documentclass{exam} % or any other suggestion
\begin{document}

\begin{questions}

\question Prove that $A\implies B$.

\begin{hint}
Use contradiction.
\end{hint}

\begin{solution}
The details...
\end{solution}

\end{questions}

\end{document}

And then an appropriate Makefile with latexmk would produce sheet-questions.pdf, sheet-hints.pdf and sheet-solutions.pdf by passing the right options to the selected class, as instructed elsewhere on this site.

  • What have you tried? We already have some questions about how to pass information from the command line to the LaTeX run, so you might start with one of these posts… – TeXnician Mar 13 at 16:19
  • 1
    Nothing yet, I would first like to know if a class with a comparable environment to what I'm looking for exists (i.e. hints besides questions and solutions) before reinventing the wheel. My question is not about passing options to classes; I already know how to achieve what I described in the last paragraph (one tex -> several different pdfs). – Anthony Labarre Mar 14 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.