考试类别中的成绩表加分错误

考试类别中的成绩表加分错误

在考试课上,我想给问题和问题的各个部分都分配分数。但是在生成成绩表时,该问题的分数将是正确值的两倍,因为它将问题的分数和其中的各个部分的分数相加。

以下是 MWE:

\documentclass[12pt, addpoints]{exam}

\begin{document}
\begin{questions}
\question[10]
Why is there air?
\question[10]
What if there were no air?
\begin{parts}
\part[5]
Describe the effect on the balloon industry.
\part[5]
Describe the effect on the aircraft industry.
\end{parts}
\question[20]
\begin{parts}
\part
Define the universe. Give three examples.
\part
If the universe were to end, how would you know?
\end{parts}
\end{questions}

\begin{center}
\combinedgradetable[v][questions]
\end{center}

\end{document}

答案1

您不必在问题顶部给出总分,而是可以使用命令 \droptotalpoints 在问题末尾显示该问题的总分。

\documentclass[12pt, addpoints]{exam}

\begin{document}

\begin{questions}
\question[10]
    Why is there air?
\question
    What if there were no air?
    \begin{parts}
        \part[5] Describe the effect on the balloon industry.
        \part[5] Describe the effect on the aircraft industry.
    \end{parts}

\droptotalpoints

\question[20]
\begin{parts}
    \part Define the universe. Give three examples.
    \part If the universe were to end, how would you know?
\end{parts}

\end{questions}

\begin{center}
\combinedgradetable[v][questions]
\end{center}

\end{document}

相关内容