rbrignall / OU-SUPPS

LaTeX class files for OU Supps. If you like this repository, you'll surely also like Robert Hasson's ouunit package: https://github.com/RobertHasson/ouunit Sign up to our mailing list to receive updates: https://www.jiscmail.ac.uk/OU-TEX-ANNOUNCEMENTS
8 stars 4 forks source link

ouexam: Suppress question in solutions #79

Closed rbrignall closed 9 months ago

rbrignall commented 3 years ago

From a conversation with Alvaro:

"What's the best way to obtain separate solutions to exam papers for external markers?"

Define something like this in the preamble:

\newenvironment{questiontext}{}{}

And use the questiontext environment as a wrapper around the text of the question:

\begin{questiontext}
The text of the question goes here.
\end{questiontext}
\begin{solution}
The solution to the question goes here
\end{solution}

Then, when you want to create a solutions document without the questions appearing, you pass the “solutions” option to ouexam.cls, and redefine the questiontext environment with the following:

\newenvironment{questiontext}{\begin{comment}}{\end{comment}}

This will make everything within questiontext not appear in the output.

rbrignall commented 9 months ago

Additional to a questiontext type environment: Have options to output the exam, the solutions only, or the exam + solutions.

rbrignall commented 9 months ago

All features added.