![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
11 May
2010
11 May
'10
3:56 a.m.
Jan Pohanka wrote:
Thank you, I have an additional question. Is it possible to have the sum available before the \question commands?
This is what I would do (but I suspect Wolfgang can come up with something cleaner): \def\startquestions {\newcount\totalpoints} \def\stopquestions {\expanded{\reference[totalpoints]{\the\totalpoints}}} \def\question#1#2{\global\advance\totalpoints #1\relax #2\par} \starttext Total points: \in[totalpoints] \startquestions \question{5}{text text} \question{3}{text text} \question{1}{text text} \stopquestions \stoptext