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


\question Prove that $A\implies B$.

Use contradiction.

The details...



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 '19 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). Mar 14 '19 at 8:07
  • 1
    Something like this? tex.stackexchange.com/q/224408 (an xsim solution can be found in its manual: eample 9 (hints))
    – cgnieder
    Oct 3 '19 at 9:55
  • @clemens That looks promising, I'll give it a try as soon as possible. Thanks! Oct 3 '19 at 12:54

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.