Code: Select all
/mwe.tex
/sub/mwefig.tex
Code: Select all
\documentclass{article}
\usepackage{standalone}
\usepackage{tikz,pgfplots}
\standaloneconfig{mode=buildnew}
\pgfplotsset{compat=newest}
\begin{document}
Time is money!
\includestandalone{sub/mwefig}
\end{document}
Code: Select all
\documentclass{standalone}
\usepackage{tikz,pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\draw (0,0) circle (2);
\end{tikzpicture}
\end{document}
What I rather get is a warning: Package standalone Warning: Graphic 'sub/mwefig.pdf' could not be build. Even though, the main PDF is produced containing the required graphics.
I also noticed, the mwefig.pdf file is actually created, however in a separate directory and with different name:
Code: Select all
/sub'/mwefig'.pdf
Code: Select all
/mwe.tex
/mwe.pdf
/sub/mwefig.tex
/sub'/mwefig'.pdf