<div dir="ltr">
> Thanks, David, for the pointer to 'shellesc.sty'. (Unlike 'iftex.sty', <br><div>
> it can't be '\input' in plain TeX.) <br></div><div><br></div><div>sigh, it could when I wrote it, but I have let some latex creep in</div><div><br></div><div>! Undefined control sequence.<br>l.55 \@makeother</div><div><br></div><div>that's just `\catcode`\@=12 I'll probably fix that for next time, thanks</div><div><br></div><div>David</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 7 Oct 2023 at 14:38, Andreas Scherer <<a href="mailto:andreas_tex@freenet.de">andreas_tex@freenet.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks, David, for the pointer to 'shellesc.sty'. (Unlike 'iftex.sty', <br>
it can't be '\input' in pöain TeX.)<br>
<br>
In 'pwebmac.tex' I reduced the code to<br>
<br>
\chardef\pdfshellescape<br>
\directlua{tex.sprint((status.shell_escape or os.execute()) .. " ")}<br>
<br>
for LuaTeX and it works nicely further below in<br>
<br>
\ifpdflua \makebookmarks % added in Version 4.5<br>
\ifnum\pdfshellescape=1 {\let\\=\BS % count the @<named sections@><br>
\global\countD=\input{|grep -c -e '\\:\\X' \jobname.tex}} \fi\fi<br>
<br>
Cheers,<br>
Andreas<br>
</blockquote></div>