[Dev-luatex] \primitive for non-primitive

Hans Hagen j.hagen at xs4all.nl
Sat Apr 28 16:08:30 CEST 2018


On 4/28/2018 3:45 PM, Hironobu Yamashita wrote:
> Hi,
> 
> LuaTeX raises "Missing primitive name" error for the following:
> 
> \primitive\NONE
> \end
> 
> PDFTeX (\pdfprimitive) and XeTeX (\primitive) simply ignores non-primitive, as
> the PDFTeX manual says
> 
>> This command executes the primitive meaning of the following control sequence,
>> regardless of whether the control sequence has been redefined or made undefined.
>> If the primitive was expandable, \pdfprimitive expands also.
>> On the other hand, if the following control sequence never was a primitive,
>> nothing happens and no error is raised.
>> (In some versions of pdfTEX prior to 1.40.19, an error was wrongly given.)

\suppressprimitiveerror = 1

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-luatex mailing list