2

According to the exam class, the grading table should only include the regular point, not the bonus points. However in the example below, the bonus question shows up in the grading table. How can I get rid of it?

\documentclass[addpoints]{exam}

\begin{document}

\begin{questions}

 \question[4]
 TEXT
 \question[4]
 TEXT
 \question[4]
 TEXT
 \question[4]
 TEXT

 \bonusquestion
 TEXT

 \gradetable[v][questions]
\end{questions}

\end{document}

1 Answer 1

1

From exam document, I found a useful command that is

\begingradingrange{myrange} % at the start of the range and the command
\endgradingrange{myrange} % at the end of the range.

Using this command and \partialgradetable, following code solves the problem.

\documentclass[addpoints]{exam}

\begin{document}

\begin{questions}
\begingradingrange{first} % "first" is my choice for determining the range
 \question[4]
 TEXT
 \question[4]
 TEXT
 \question[4]
 TEXT
 \question[4]
 TEXT
\endgradingrange{first}
 \bonusquestion
 TEXT

 \partialgradetable{first}[v][questions]
\end{questions}

\end{document}

enter image description here

5
  • ok, this could be an acceptable answer. Is there also a way if there are more regular questions after the bonus question?
    – John Smith
    Feb 8, 2019 at 21:37
  • Well, again from exam document on page 84, You can define as many grading ranges as you like, wherever you like. That is, grading ranges do not need to be nested; you can begin the range other range somewhere in the middle of the range myrange and then end the range other range after the end of myrange.
    – user31034
    Feb 8, 2019 at 21:43
  • If you define a second range, say named second wherever you want, exam class renders a second table with \partialgradetable{second}[v][questions]
    – user31034
    Feb 8, 2019 at 21:47
  • yes, but that would be a second table. Isn't the gradetable supposed to show only the regular questions - in other words: is the behavior in my question a bug?
    – John Smith
    Feb 9, 2019 at 21:04
  • I said that it is the second table. I don't know is it a bug.
    – user31034
    Feb 9, 2019 at 21:37

You must log in to answer this question.

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