In 7.1.1 of the PGFPLOTS library the following example of externalization is given. Whatever I try, I cannot get it to work in TeXniccenter, running MiKTeX 2.8.
\documentclass{article}
\usepackage{pgfplots}
\usepgfplotslibrary{external}
\tikzexternalize% activate externalization!
\begin{document}
\begin{figure}
\begin{tikzpicture}
\begin{axis}
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\caption{Our first external graphics example}
\end{figure}
\end{document}
I tried adding the following command line arguments to the output profile
-shell-escape -synctex=-1 -interaction=nonstopmode "%bm"
And tried a number of other things, but I cannot get it to work. Error:
Package TiKz error: Sorry the system call 'pdflatex -halt-on-error -interaction=batchmode -jobname "plaatje-figure0" ... did NOT result in a usable output file 'plaatje-figure0'
-enable-write18
instead of-shell-escape
. So try changing that in the command line arguments and in the TeX file (\tikzexternalize[shell escape=-enable-write18]
)