Michele wrote:
In an exam, we make a numbered list style for questions. We make a
variable (perhaps a macros will be helpful here) that holds the total
number of items in that list (which equals the number of questions).
When we update the document, the table is created by reading in that
variable. The result is a table of two rows, the top one having cells
with sequential numbers in them (representing the question numbers) and
the lower one blank to be filled in with the grades.
Hello HS,
Here's a macro that does exactly what you asked above. It is *not*
elegant, probably it is not efficient, but I just tried and it works.
All you need to do is to create a style called "NumberedList" and use
it for each question. The macro will count the occurrencies of this
style and create at the end of the document the table you want
(leaving 1.5 cm to the left and to the right).
The module (one main and two functions) is almost entirely ripped from
from the excellent document of Andrew Pitonyak where you will find
many more tips on how to format the table and so on...
Cheers,
Michele
<snipped the code>
Wow! Wonderful!
Thanks a ton, Michele. I will try it out and experiment with it. I
really appreciate your work.
regards,
->HS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]