[luatex] \pdfshellescape

Hans Hagen pragma at wxs.nl
Sun Dec 6 12:56:13 CET 2015


On 12/6/2015 1:25 AM, David Carlisle wrote:
> On 5 December 2015 at 23:29, luigi scarso <luigi.scarso at gmail.com> wrote:
>>
>>
>> but I'm not sure that this will be the final form --- maybe for this reason it  is still to be documented.
>
>
> Thanks it would be nice if you could document it, even (or especially)
> if it is likely to change.
>
> We may need it in latex (existing packages using \pdfshellescape) and
> I feel uneasy
> relying on undocumented code.
>
> It does seem a bit strange being overloaded on to os.execute() since
> it is presumably a fixed
> integer for the duration of any document, so the function syntax seems
> slightly odd, but
> it's certainly workable (if documented:-) so that's more of a minor
> aside since you mentioned
> it might change.

I'll add

\directlua{tex.write(status.shell_escape)}

While testing your stuff you can do:

\directlua{tex.write(status.shell_escape or 2)}

(as it will be available in 0.81)

Hans



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


More information about the luatex mailing list