I'd define two new counters that are reset within chapters:
\newcounter{answer}[chapter]
\newcounter{question}[chapter]
Then you can define an environment or command that uses these counters
and automatically prints the counter number in whatever format you want,
e.g.: \arabic{answer}. How exactly you do that will of course depend
upon how you want things formatted. But for the questions you might just
define a \newtheorem and use the built in formatting there.
Richard
Steve Litt wrote:
Hi all,
My next book will be in the form of a textbook, so after each chapter summary
I'll have a Questions section, followed by an Answers section. In each of
those two sections, I'll have a series of numbered (I assume Arabic)
questions (or answers). The questions and answers should all restart at #1 in
each chapter.
Before I spend 3 days figuring out how to do this, does anyone know a way? I'm
considering using a modified memoir document class, or maybe book or some
other book-derived document class.
Thanks
SteveT
Steve Litt
Author:
* Universal Troubleshooting Process courseware
* Troubleshooting Techniques of the Successful Technologist
* Manager's Guide to Technical Troubleshooting
* Twenty Eight Tales of Troubleshooting
* Rapid Learning: Secret Weapon of the Successful Technologist
http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm