Document Classes ⇒ exam | Total Points in Margin
exam | Total Points in Margin
Is there a way to get the total points of the exam (\numpoints) at the end of the exam in the right margin like the points of each question (\pointsinrightmargin)? I just want to sum up at the end and do not need a point table.
NEW: TikZ book now 40% off at Amazon.com for a short time.
exam | Total Points in Margin
I wrote a mail to the author of the class and Philip Hirschhorn replied in the following way:

Thanks to Philip HirschhornTry putting the following into the preamble (i.e., after the \documentclass command and before \begin{document}):
You can then say \dropnumpoints and it will put \numpoints in the right margin, in the same place the points land when you're using \pointsinrightmargin.Code: Select all
\makeatletter \def\dropnumpoints{% \leavevmode\unskip\nobreak\hfill \rlap{\hskip\rightmargin % Defined by the list environment \hskip\@rightmargin % Defined by exam.cls \hskip-\rightpointsmargin \llap{(\numpoints)}% }% rlap \par }% dropnumpoints \makeatother
If you want it formatted some way other than \numpoints just change the lineto beCode: Select all
\llap{(\numpoints)}%
In case you're curious: That definition of \dropnumpoints is a simple modification of the definition of \droptotalpoints in "exam.cls".Code: Select all
\llap{whatever}%
