[texhax] testing if a control sequence is primitive

Vafa Khalighi vafaklg at gmail.com
Sat Oct 8 17:56:15 CEST 2011


Thanks. This is exactly what I was after however this is known as
\ifprimitive in XeTeX.

On Sun, Oct 9, 2011 at 2:36 AM, Philip TAYLOR (Webmaster, Ret'd) <
P.Taylor at rhul.ac.uk> wrote:

>
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111009/c022448c/attachment.html>


More information about the texhax mailing list