[OS X TeX] MacTeX 2008 and exam.cls

Todd Hufnagel hufnagel at jhu.edu
Sun Sep 14 02:50:06 CEST 2008


Greetings,

I recently downloaded and installed TeXLive-2008 (from MacTeX-2008),  
and quickly ran into a problem. When compiling documents using  
exam.cls, I get the following error:

> This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)
>
> [...]
>
> (/usr/local/texlive/2008/texmf-dist/tex/latex/exam/exam.cls
> Document Class: exam 2008/07/19 Version 2.3 by Philip Hirschhorn
> (/usr/local/texlive/2008/texmf-dist/tex/latex/base/ifthen.sty)
> (/usr/local/texlive/2008/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
>
> [...]
>
> ! Undefined control sequence.
> \@gtempa ...ifnum \@ne =\@ne \fi \if at printanswers
>
> Process aborted
>          \relax \TE at setvaltrue \els...
> l.17 \ifthenelse{\boolean{@printanswers}}

The offending bit of my source file is:

> \printanswers
> \addpoints
>
> \begin{document}
> % The title block depends on whether we are printing the original  
> quiz, or the solutions:
> \ifthenelse{\boolean{@printanswers}}
>


My first thought was that ifthen.sty was not being located, but the  
log clearly shows that it is. So I don't understand why I'm getting  
the "undefined control sequence" error.

Interestingly, the same source file compiles without complaint using  
the TeXLive-2007 distribution (many thanks to the developers for  
making it easy to switch back).

Any suggestions would be appreciated.

Thanks,

Todd Hufnagel

-----
Todd Hufnagel
Professor
Department of Materials Science and Engineering
Johns Hopkins University
102 Maryland Hall
3400 N. Charles Street
Baltimore, MD 21218-2681
410-516-6277/ Fax 410-516-5293
hufnagel at jhu.edu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/macostex-archives/attachments/20080913/718cb1d9/attachment-0001.html 
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list