4

In the exam class, I would like to assign points to both the question and the parts of that question. But when generating the grade tables, the points for that question will be two times of the correct value since it adds both the points for question and the parts therein.

Below is a 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 Answer 1

3

Instead of giving the total points at the top of the questions you can use the command \droptotalpoints to show the total points of that question at the end of the question.

\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}
3
  • Thanks, the \droptotalpoints command works well. I will try to integrate it into the '\qformat'.
    – tao sheng
    Commented Nov 4, 2014 at 0:42
  • @tao Glad I could help. BTW, if you want to change the text that appears before the number of points, you can use the command \totalformat{my text} before \begin{document}. Commented Nov 4, 2014 at 19:22
  • sorry, there's something missing in my comment above. It should be: \totalformat{my text: \totalpoints} Commented Nov 4, 2014 at 20:19

You must log in to answer this question.

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