答案1
手动使用条件
\documentclass[addpoints]{exam}
%\newcommand*{\SHOWUNGRADED}{} % uncomment to show ungraded exercises
\begin{document}
\begin{questions}
\question[10]
Why is there air?
\ifdefined\SHOWUNGRADED
\question Compute $\displaystyle\int_0^1 x^2 \, dx$.
% \else % uncomment to keep question numbering (part, subpart similarly)
% \stepcounter{question} % uncomment too, to keep numbering
\fi
\question[15]
How much wood would a woodchuck chuck if a woodchuck could chuck
wood?
\end{questions}
\end{document}
如果能够自动完成问题、零件等的处理就好了,但是我在文档中找不到预定义的解决方案。