[texhax] testing if a control sequence is primitive

Philip TAYLOR (Webmaster, Ret'd) P.Taylor at Rhul.Ac.Uk
Sat Oct 8 17:36:22 CEST 2011



Vafa Khalighi wrote:

> How can you test if a control sequence is primitive or not?

"undefined" is \ifpdfprimitive \undefined \else not \fi a primitive \par
"foo" is \ifpdfprimitive \foo  \else not \fi a primitive \par
"csname" is \ifpdfprimitive \csname  \else not \fi a primitive \par
\end



More information about the texhax mailing list