# \includestandalone does not create a pdf

Somehow \includestandalone from the standalone package does not create a pdf with this main file:

\documentclass{article}
\usepackage{standalone}
\usepackage{tikz}
\begin{document}
\begin{figure}[h]
\includestandalone[mode=buildnew]{test2}
\includestandalone[mode=image]{test2}
\end{figure}
\end{document}


This is a code of the standalone file:

\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[->] (0,1cm)--++(14,-5);
\end{tikzpicture}
\end{document}


I thought from reading the manual of the standalone package usage of (with pdflatex):

\includestandalone[mode=buildnew]{test2}


will give me in my folder a pdf file test2.pdf after compilation, but I do not have it, that is why the second line of my code:

\includestandalone[mode=image]{test2}


does not work, no pdf - no compilation it says:)

Please explain why it could be so that I do not get pdf after compilation.

• Works fine here. You need to compile with shell-escape enabled, have you done that? – Torbjørn T. Feb 26 '14 at 11:03
• \includestandalone[mode=buildnew]{test2} \includestandalone[mode=image]{test2} does not work, cause the first line creates pdf with name 'test2.pdf' (' - is a symbol which surrounds file name). So compiler can not find test2.pdf. How it could be solved? – saldenisov Feb 26 '14 at 13:08
• Really? That does not happen here (Kubuntu 13.10, v1.1b of standalone) , I get test2.pdf. Add \listfiles before \documentclass to get a list of packages and their versions near the end of the log file. – Torbjørn T. Feb 26 '14 at 13:14
• There is something similar, but I can make it work:tex.stackexchange.com/questions/85055/… – saldenisov Feb 26 '14 at 13:17

Standalone package should be updated with this (if you use MiKTEX):https://bitbucket.org/martin_scharrer/standalone/downloads. Then it works perfectly.