4

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'

4
  • 2
    I think in MikTeX you have to compile with -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])
    – Caramdir
    Jun 15, 2012 at 17:30
  • Note, that did not make a change. But updating to MiKTeX 2.9 did. Don't know why, though?
    – willem
    Jun 15, 2012 at 17:54
  • I still cannot get my head around the fact that MiKTeX 2.8 would not work? I Downloaded PGF from the repository. Is the repository not updated for a fixed version of MiKTEX?
    – willem
    Jun 15, 2012 at 18:19
  • 1
    @willem Have a look at the MikTeX manual and the release note for version 2.9. Maybe you find an explanation.
    – Sveinung
    Jun 15, 2012 at 21:37

1 Answer 1

7

Updating the MikTeX installation would solve the issue as I'm using the same configuration

enter image description here And the result is

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .