When writing exams with the exam
class, I like to add a partial grade table to each page for just the questions on that page, and then add a final grade table at the end of the exam by page number.
Here's a MWE:
\documentclass[addpoints]{exam}
\begin{document}
\begin{questions}
\begingradingrange{page1}
\question[10] What does $2+2$ equal?
\question[10] What is $\frac{d}{dx} \sin x$?
\endgradingrange{page1}
\vfill
\begin{flushright}
\partialgradetable{page1}[h]
\end{flushright}
\clearpage
\begingradingrange{page2}
\question I have many parts.
\begin{parts}
\part[5] Graph $y=x^2$.
\part[7] Compute the Laplace Transform of $y(t) = e^{2t} \cos t$.
\end{parts}
\question[42] Quis custodiet ipsos custodes?
\endgradingrange{page2}
\vfill
\begin{flushright}
\partialgradetable{page2}[h]\\
\gradetable[h][pages]
\end{flushright}
\end{questions}
\end{document}
Which produces the following output:
Is there a way to automate this behavior? The only advice I found in the Exam Doc Class was the technique of creating partial grade tables as shown in the MWE. This gets a bit tedious with a full length exam.