3

Consider the following MWE.

\documentclass[addpoints]{exam}

\begin{document}

\begin{questions}
  \question [10] First question text.
  \question [20] Second question text.
\end{questions}

\gradetable[h]

\end{document}

I would like to add another row (say for signature of graders to individual questions) to the grade table that is generated.

How do I do that?

2 Answers 2

5

You can accomplish that by grossly abusing the \combinedgradetable command, as in:

\documentclass[addpoints]{exam}

\begin{document}

\begin{questions}
  \question [10] First question text.
  \question [20] Second question text.
\end{questions}

\begingroup
  \chbpword{Signature:}
  \settabletotalbonuspoints{}
  \renewcommand{\bonuspointsofquestion}[1]{}
  \combinedgradetable[h]
\endgroup

\end{document}

The \chbpword command replaces the text Bonus points: with Signature, the \settabletotalbonuspoints command causes the box for the total bonus points to be left empty, and the renewcommand causes the boxes for the bonus points of each question to be left empty.

4
  • Before posting the question I was getting the rough idea that I have to hack into the tables which provide an extra row. But failed to achieve it. You have done it. Thanks a lot. Is there any way to make the signature row the last row?
    – Masroor
    Aug 12, 2018 at 9:34
  • @Masroor: see next answer. BTW, hacking the table generating code is not easy. Aug 12, 2018 at 14:40
  • @PhilHirschhorn: why are the \begingroupand endgroup needed? Aug 13, 2018 at 14:08
  • @Jesse op den Brouw: The grouping is to keep the commands just before the table command from affecting any other tables in the document. Aug 14, 2018 at 3:47
2

This code:

\begingroup
  \chbpword{Score:}
  \chsword{Signature:}
  \settabletotalbonuspoints{}
  \renewcommand{\bonuspointsofquestion}[1]{}
  \combinedgradetable[h]
\endgroup

reverses the Score and Signature names so that Signature is on the bottom row.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .