2

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.

saldenisov
  • 2,485
  • 2
    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:http://tex.stackexchange.com/questions/85055/latex-standalone-always-rebuilds-apostroph-in-filename – saldenisov Feb 26 '14 at 13:17

1 Answers1

1

Here is the answer to my question. It was not easy to find. Latex Standalone always rebuilds / apostroph in filename?

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

saldenisov
  • 2,485