How do I globally suppress the display of points (for questions and for parts) in exam class?
I like to have the points display on the question sheet, but not on the answer (questions+solutions) sheet.
I tried \nopointsinmargin
but that did not work. It only shifted the displayed points to another location.
A minimum working example:
\documentclass[answers]{exam}
%\documentclass{exam}
%\pointsinrightmargin
\nopointsinrightmargin
\begin{document}
\begin{questions}
\question[5]
How long is a piece of string?
\begin{parts}
\part[2] Define "piece".
\begin{solution}
A piece is \dots
\end{solution}
\part[3] Define string.
\begin{solution}
A string is \dots
\end{solution}
\end{parts}
\droppoints
\end{questions}
\end{document}
\documentclass
command, have a minimal preamble and then\begin{document}...\end{document}
. The code should compile and be as small as possible to demonstrate your problem.