![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
11 May
2010
11 May
'10
3:23 a.m.
Jan Pohanka wrote:
Hello, I'm preparing a simple template for exam tests. I have following commad.
\question{3}{text text text}
\newcount\totalpoints \def\question#1#2{\global\advance\totalpoints #1\relax ... #2 ...}
where firtst parametr stands for points.
I'd like to compute the sum of points to be used as "Total points: xx"
Total points: \the\totalpoints Best wishes, Taco