On Sun, 3 Jun 2007, David Arnold wrote:
Aditya,
As usual, great work. I don't understand the purpose of the fourth argument to \dowritelist:
\def\savescore{\expanded{\dowritetolist{Score} {\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}}
There are 4 arguments here, as in \dowritelist#1#2#3#4.
It appears that:
#1 holds the name of the list. #2 ? #3 ? #4 ?
Can you describe what is expected in #2, #3, and #4?
Above, I can see that you are sending the number of the current answer to #2 and the value of the total score to #3. This is not my problem. My problem is what is generally expected in #2 and #3 and I am baffled by the use of #4.
I do not know. This was the reason I was reluctant to give an example of how to use lists to get the result. I do not use lists and consequently do not understand them. I just copied a usage of \dowritelist from core-des (playing around with theorems, so I know my way around core-des) and did some trial and error to get the whole thing to work. Have a look at the tui file and it will give you some idea of various arguments of \dowritelist. Sorry for not being of any help here. Aditya