Document Classes ⇒ exam | Total Points in Margin
exam | Total Points in Margin
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
exam | Total Points in Margin
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}%
