我正在参加一场考试,考试有两部分:20 个问题的多项选择题和 8 个问题的简答题。
\documentclass[addpoints]{exam}
\begin{document}
\section{multiple choice}
\begin{questions}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\end{questions}
\section{short answer}
\begin{questions}
\question[2] sample question
\end{questions}
\newpage
\multirowgradetable{2}
\end{document}
答案1
questions
您使用的结构是错误的,两次启动和结束环境。
%% WRONG code
\documentclass[addpoints]{exam}
\begin{document}
\section{multiple choice}
\begin{questions}
\question[22] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[21] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\end{questions} % wrong<<<<<<<<<<<<<<<<<<<<<<
\section{short answer}
\begin{questions} % wrong<<<<<<<<<<<<<<<<<<<<<<
\question[20] sample question
\question[19] sample question
\question[18] sample question
\question[17] sample question
\question[16] sample question
\question[15] sample question
\question[14] sample question
\question[13] sample question
\question[12] sample question
\question[11] sample question
\question[10] sample question
\question[9] sample question
\question[8] sample question
\question[7] sample question
\question[6] sample question
\question[5] sample question
\question[4] sample question
\question[3] sample question
\question[2] sample question
\end{questions}
\multirowgradetable{2}[questions]
\end{document}
这是正确的结果:
%% RIGHT code
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\section{multiple choice}
\question[22] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[21] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
% \end{questions} % wrong<<<<<<<<<<<<<<<<<<<<<<
\section{short answer}
% \begin{questions} % wrong<<<<<<<<<<<<<<<<<<<<<<
\question[20] sample question
\question[19] sample question
\question[18] sample question
\question[17] sample question
\question[16] sample question
\question[15] sample question
\question[14] sample question
\question[13] sample question
\question[12] sample question
\question[11] sample question
\question[10] sample question
\question[9] sample question
\question[8] sample question
\question[7] sample question
\question[6] sample question
\question[5] sample question
\question[4] sample question
\question[3] sample question
\question[2] sample question
\end{questions}
\multirowgradetable{2}[questions]
\end{document}
更新后续问题:共有20道选择题和8道简答题。
您需要的是两个成绩表,第一个针对问题 1-20,第二个针对问题 21-28。
可以定义一个或多个“放码范围”,然后计算范围内的点数并创建仅覆盖该范围的放码表。
\begingradingrange{myrange}
在范围的开始处
\endgradingrange{myrange}
在范围的末尾。
然后,您可以使用命令 \partialgradetable{myrange}
或创建仅涵盖一定范围内的问题的评分表\multirowpartialgradetable{2}{myrange}
。
代码定义了一个范围mcrange
来对多项选择题和sarange
简答题进行分组。
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\section{multiple choice}
\begingradingrange{mcrange}
\question[4] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[10] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[7] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[7] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[5] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[2] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[2] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[2] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\question[1] example question
\begin{checkboxes}
\choice a
\choice b
\end{checkboxes}
\endgradingrange{mcrange}
\section{short answer}
\begingradingrange{sarange}
\question[6] sample question
\question[7] sample question
\question[8] sample question
\question[1] sample question
\question[2] sample question
\question[3] sample question
\question[4] sample question
\question[5] sample question
\endgradingrange{sarange}
\end{questions}
\newpage
\multirowpartialgradetable{2}{mcrange}% two rows over the first range
\bigskip
\partialgradetable{sarange}[h] % one row horizontal over the second range
\end{document}