# Can the standalone document type be made compatible with tikzexternalize? [duplicate]

Code:

\documentclass[tikz]{standalone}
\usetikzlibrary{external}
\tikzexternalize
\begin{document}
\begin{tikzpicture}
\node[circle,draw] at (2, 3) {};
\end{tikzpicture}
\begin{tikzpicture}
\node[circle,draw] at (2, 3) {};
\end{tikzpicture}
\end{document}


Yields

! Missing } inserted.

Something is wrong with standalone when used with tikzexternalize. Can this be made to work?

• – cmhughes Feb 18 '14 at 2:20
• @cmhughes: can standalone produce a pdf for each tikzpicture? – Neil G Feb 18 '14 at 2:22
• Could you explain what you are trying to do exactly? As I understand it, standalone produces 1-out-for-1-in. But can't you just use two source files? Or use externalize rather than standalone? – cfr Feb 18 '14 at 2:42
• @cfr: I generate a latex file with all of my images. I want them all to be compiled to individual pdfs that I can then include in my real latex file. This works with tikzexternal and standalone if I don't give standalone the tikz option. With that option, standalone puts each tikzpicture on a separate page, which is nice for viewing. – Neil G Feb 18 '14 at 3:04
• I still don't see why you can't have each image in a separate file. Then your viewing file can use standalone as a package just as your main file does. – cfr Feb 18 '14 at 3:10