
答案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}
如果能夠自動完成問題、零件等問題,那就太好了,但是我在文件中找不到預先定義的解決方案。