[texhax] How to test for existence of a macro?
Vafa Khalighi
vafa at users.berlios.de
Sat Aug 29 03:13:46 CEST 2009
Use \show
e.g
\show\TeX
Gives:
> \TeX=macro:
->T\kern -.1667em\lower .5ex\hbox {E}\kern -.125emX.
which means \TeX is defined and it is a macro not a primitive.
\show\pdfoutput
gives:
> \pdfoutput=\pdfoutput.
which means \pdfoutput exist and it is a primitive.
Best wishes,
Vafa Khalighi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20090829/a132d8dc/attachment.html>
More information about the texhax
mailing list