Discussion:
[Dev-luatex] \primitive for non-primitive
Hironobu Yamashita
2018-04-28 13:45:03 UTC
Permalink
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.)
Hironobu Yamashita
Hans Hagen
2018-04-28 14:08:30 UTC
Permalink
Post by Hironobu Yamashita
Hi,
\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
-----------------------------------------------------------------
Hironobu Yamashita
2018-04-28 14:13:15 UTC
Permalink
Hi Hans,
Post by Hans Hagen
\suppressprimitiveerror = 1
Thanks;
Now that pdfTeX/XeTeX defaults to suppressing the error,
isn't it better to change the default value to 1?

Hironobu
Hans Hagen
2018-04-28 14:34:58 UTC
Permalink
Post by Hironobu Yamashita
Hi Hans,
Post by Hans Hagen
\suppressprimitiveerror = 1
Thanks;
Now that pdfTeX/XeTeX defaults to suppressing the error,
isn't it better to change the default value to 1?
we don't follow these engines, but a format can default this value to 1
of course (esp if we can debate what default behavious is cq. when that
changes in other engines); in fact, in most cases in luatex we just make
something an option via a parameter

Hans


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