3

New to this forum, but long time TeX and LaTeX user. I've had this problem recently, for which I couldn't find a solution:

I'd like to print out the total possible score at a test at the top of the test. This is of course the total sum of scores of the different questions. I've thus thought of creating a counter

\newcounter{total}
\setcounter{total}{0}

at the beginning of the file, and at each question, I've used the command

\addtocounter{total}{ <the score at this question> }

But then, of course, the total score is effectively computed at the end of the document. How can I manage to print this score at the top of the document? Perhaps with a temporary external file, but I haven't looked into this...

All help is greatly appreciated! Thanks a lot in advance!

karlkoeller
  • 124,410
Gabriel
  • 331

0 Answers0