The example bellow comes from the documentation of TikZ (p610).
It does not work my computer. Note that it works when I comment the option [prefix=figures/].
Any idea of what could go wrong here?
\documentclass{article}
% main document, called main.tex
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=figures/] % activate
\begin{document}
\tikzsetnextfilename{trees}
\begin{tikzpicture} % will be written to ’figures/trees.pdf’
\node {root}
child {node {left}}
child {node {right}
child {node {child}}
child {node {child}}
};
\end{tikzpicture}
\tikzsetnextfilename{simple}
A simple image is \tikz \fill (0,0) circle(5pt);. % will be written to ’figures/simple.pdf’
\begin{tikzpicture} % will be written to ’figures/main-figure0.pdf’
\draw[help lines] (0,0) grid (5,5);
\end{tikzpicture}
\end{document}
figuresin your working directory? I just added this directory to my code sandbox and it worked! – Dec 23 '15 at 11:03