# [texhax] testing if a control sequence is primitive

Vafa Khalighi vafaklg at gmail.com
Sat Oct 8 18:26:37 CEST 2011

> Except that \par is not always redefined in LaTeX, only in some
> circumstances.
>

Can not it test if \par is defined in any circumstances (e.g. inside
quotation environment)? If it can not, then the test actually fails which is
not what I wanted.

>
>
>
> What happens if \par is redefined to be another primitive?
>
> \let\par=\hbox
>

I want it to return "\par is not a primitive any more"

>
> What about primitives under a different name?
>
> \let\endgraf=\par
>
> \endgraf is not an original primitive, but it has the meaning of
> a primitive.
>
>

I want it to return "\endgraf is not a primitive"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111009/5d143037/attachment.html>