我正在为考试班准备一份考试,其中有一个问题,学生只需选择一半来回答。总共有六个部分,他们回答了其中三个。
我使用以下方法自动计算每个问题的分数
\qformat{Question \thequestion{} (\totalpoints{} \points ) \hfill}
我正在表格中显示每个问题的分数以及考试总分。我可以使用以下方法手动获取正确的总分\settabletotalpoints{100}
但是我可以让特定问题的总数在表格中只显示一半吗?我可以想象一种解决方案,只需将给定的部分或问题从总数计算中排除即可。有办法吗?
\documentclass[addpoints,10pt]{exam}
\begin{document}
\qformat{Question \thequestion{} (\totalpoints{} \points ) \hfill}
\settabletotalpoints{100}
\gradetable[h][questions]
\begin{questions}
\question
This is the question. Do only one of part A or B. Your choice. Don't do both.
\begin{parts}
\part[100]
This is part A.
\part[100]
This is part B.
\end{parts}
\end{questions}
\end{document}
答案1
您可以使用\noaddpoints
and ,\addpoints
如以下示例所示:
\documentclass[addpoints,10pt]{exam}
\begin{document}
\qformat{Question \thequestion{} (\totalpoints{} \points ) \hfill}
%\settabletotalpoints{100}
\gradetable[h][questions]
\begin{questions}
\question
This is the question. Do only one of part A or B. Your choice. Don't do both.
\begin{parts}
\noaddpoints
\part[100]
This is part A.
\addpoints
\part[100]
This is part B.
\end{parts}
\end{questions}
\end{document}
输出: