Consider the following MWE:
\documentclass{scrartcl}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize
\tikzset{external/system call={lualatex \tikzexternalcheckshellescape -halt-on-error -interaction=batchmode -jobname "\image" "\texsource"}}
\begin{document}
\begin{tikzpicture}
\draw (0,0) -- ++(2,2);
\end{tikzpicture}
\end{document}
When compiling this with lualatex -shell-escape externalizeTest.tex
, it results in the error (in my case the file is named externalizeTest.tex
)
! Package tikz Error: Sorry, the system call 'lualatex -shell-escape -halt-on-e
rror -interaction=batchmode -jobname "externalize-figure0" "\def\tikzexternalre
aljob{externalize}\input{externalize}"' did NOT result in a usable output file
'externalize-figure0' (expected one of .pdf:.jpg:.jpeg:.png:). Please verify th
at you have enabled system calls. For pdflatex, this is 'pdflatex -shell-escape
'. Sometimes it is also named 'write 18' or something like that. Or maybe the c
ommand simply failed? Error messages can be found in 'externalize-figure0.log'.
If you continue now, I'll try to typeset the picture.
If however I change the documentclass
to standalone
, everything works like charm.
The same applies if I use pdflatex
instead of lualatex
to compile the document.
Does anyone know what's going on here?