Consider this example:
\documentclass{standalone}
%\documentclass[margin=1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.text}
\begin{document}
\begin{tikzpicture}
\draw (0,0) ellipse (2cm and 1 cm);
\path[
postaction={decorate},
decoration={
text along path,
raise=-0.3cm,
text={some text}
}
] (0,0) ellipse (2cm and 1cm);
\end{tikzpicture}
\end{document}
In the output:
standalone only respects the ellipse but disregards the tikz text decorations.
To correct I need to manually supply [margin=1cm] for standalone.
Why doesn't standalone take a holistic approach when defining pdf borders?


raise=-0.3cm,. – Jun 27 '19 at 16:44overlayperhaps? – daleif Jun 27 '19 at 16:51overlaydoes the opposite: it takes things out of the bounding box computation. – Jun 27 '19 at 16:52