I am trying to use TikzEdt, an editor for TikZ graphics. For some tasks TikZ needs to call other commands so I tried to enable this by the parameter --shell-escape
passed to lualatex
(on Windows, MiKTeX 2.9). Strangely this fails to enable the feature. After some fiddling around it turns out that it even fails with this MWE:
\documentclass{standalone}
\begin{document}
\write18{echo SHELL ENABLED}
\end{document}
TikzEdt appends the switch and calls lualatex test.tex --shell-escape
which does not seem to work. The same command with pdflatex works nicely. It turns out that other than in pdflatex the order of arguments seem to play a role in lualatex, lualatex --shell-escape test.tex
runs nicely. Unfortunately TikzEdt only allows to append switches not insert switches. Is this a bug in lualatex or is TikzEdt using a wrong assumption?
--help
flag gives us the hint, "Any remainingCOMMANDS
are processed as pdfTeX input, afterTEXNAME
is read. If the first line ofTEXNAME
is%&FMT
, andFMT
is an existing.fmt
file, use it. Else useNAME.fmt
, whereNAME
is the program invocation name, most commonlypdftex
." – Paulo Cereda Feb 4 '13 at 13:42pdflatex
andlualatex
(I got the same results), so flags really should come before the filename.:)
– Paulo Cereda Feb 4 '13 at 13:43