[OS X TeX] Conditional Typesetting Inside Lists
Maurino Bautista
maobautista at gmail.com
Tue Feb 26 10:41:26 EST 2008
We have a multiple choice section in our Calculus final exam and the
questions and choices are entered using the \begin{enumerate} --
\end{enumerate} environment in LaTeX. I would like to use the same
file to generate the exam as well as the answer key for the exam. I
would like to define a variable whose values are either exam or key.
In the beginning of the document, this variable will be declared and
if its value is exam, the file would be typeset as usual with the
questions numbered 1, 2, 3, etc and the choices within each question
labeled A, B, C, etc. If the value of the variable is key, the
letter-label of the correct answer will be enclosed in a box.
Alternative possibilities (which may be easier or harder) are:
letter-label in bold, the correct answer (not the letter-label) is
boxed or in bold, text after the correct answer stating this is the
correct answer or some other symbol like a star, a dingbat, etc. I
suppose, if I have the code for one of these, I could modify it to
obtain any of the others. I just don't have enough knowledge to start
it. Rather, I don't have time to really think about it. So, if any of
you have done it before, I would appreciate getting some help.
Maurino P. Bautista, Ph.D.
Professor of Mathematics
(585)-475-6122
maobautista at gmail.com
School of Mathematical Sciences
Rochester Institute of Technology
85 Lomb Memorial Drive
Rochester, NY 14623
More information about the MacOSX-TeX
mailing list