[NTG-context] \ifshellescape

Hans Hagen pragma at wxs.nl
Wed Dec 27 09:22:48 CET 2006

Mojca Miklavec wrote:
> On 12/26/06, Hans Hagen wrote:
>> core-job.tex:\ifx\pdfshellescape\undefined \else
>> core-job.tex:    \chardef\systemcommandmode \ifcase\pdfshellescape
>> \plusone \else \plustwo \fi
>> so \systemcommandmode is your friend
> What exactly is the advantage of using \pdfshellescape over \ifeof18
> as the basis of \systemcommandmode? The second one works in XeTeX as
> well while the first is only good for pdfTeX, but perhaps there are
> other reasons for using it.
write 18 is a hack and pdfshellescape a sane replacement

in luatex it will probably be gone completely since there we have

\directlua 0 { os.execute("...") }


More information about the ntg-context mailing list