Writting my bachelor thesis (unfortunatelly we are told to use MS Word) I am using Tikz for creating my figures. As I have several tikz-files I am using the standalone package to create a .pdf for each file.
But, when I now change for exmaple the font-size or the font-style I have to recompile every picture manually.
I kow you can compile more than one tikz-file inside the standalone, doing so results in 10 pages with one figure on each. The problem is that they are stored in one pdf-file.
Is there the possibility that the standalone can create a seperate file for each fiure? More, it would be great If I can set the name for those files to recognize them later on.
MWE:
\documentclass[tikz,multi=true]{standalone}
\begin{document}
\begin{tikzpicture}
\node{Picture 1};
\end{tikzpicture}
## here I want to break the file to create seperate file with name=picture 2
\begin{tikzpicture}
\node{Picture 2};
\end{tikzpicture}
\end{document}
Picture:
EDIT
After implementing the solution from Ross which seems to do what I intended to do occur in erros:
\documentclass[tikz, multi=true]{standalone}
\usetikzlibrary{external}
\tikzexternalize[prefix=figures/]
\begin{document}
\tikzsetnextfilename{importantFigure}
\begin{tikzpicture}
\node{Picture 1};
\end{tikzpicture}
\tikzsetnextfilename{anotherimportantFigure}
\begin{tikzpicture}
\node{Picture 2};
\end{tikzpicture}
\end{document}
My errors are:
However the pictures are printed and stored in one file each. But rerun the code results still in the error and the pictures are not updated.
article
class, notstandalone
. Compile with--shell-escape
enabled. Your MWE works for me with this change.