I use the exam class to produce exams for students, and I want to make a kind of questions, which puts in front the total points, but given detailed. I give an example:
\documentclass[addpoints]{exam}
\pointformat{}
\qformat{\textbf{Question \thequestion}. [Points of question \thequestion: \totalpoints]\hfill}
\begin{document}
\begin{questions}
\question
\begin{parts}
\part[3]
\part[2]
\end{parts}
\end{questions}
\end{document}
which gives this output:
I want to obtain, as output, the detailed points of the question, so precisely something like:
[Points of question 1: 3+2=5 points]
How can I obtain this ?
\gdef\pointsofq@i{5}
. Alas, no points per part are so saved.\gdef\pointsofpartofq{.}
.. I'm not a programmer but I think that it's not very difficult.. It's surprising that this macro does not exist because it's useful, I think !exam.cls
the command\def\do@cvloop{...}
which seems to do the loops for computing\totalpoints
exercise@parts
in exam.cls. where is it ?\def\begingradingrange
seems to do something like my purpose