[texhax] testing the document class

Christian Bird cabird at gmail.com
Tue Feb 24 02:12:17 CET 2009

Hi all,

I'm trying to define a command that changes it's behavior depending on
whether the class file defines chapters or not.  Is there an easy way to
test for whether a macro is defined?  I'd like to do something like this:

\ifx <\chapter is defined>

Can anyone let me know what the correct way to test for this is?  Thanks!

-- Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20090223/73d5f69f/attachment.html 

More information about the texhax mailing list