I have a pdf graphic that needs to be inserted into a TikZ environment (where I can annotate it). However, the bounding box that is placed around the image includes unnecessary whitespace. The command is simply
\begin{tikzpicture}
\node at (0,0) {\includegraphics[width=1.0\linewidth]{figure.pdf}};
\draw (current bounding box.south west) rectangle (current bounding box.north east);
\end{tikzpicture}
The bounding box for the actual pdf is tight. However, the result, outputted by tikz is not. There is significant whitespace on all sides.
How do you tighten the bounding box?
overpicuses the outdatedpictureenvironment. See the link in my answer for a TikZ based replacement. We are planning to publish that as package. – Martin Scharrer Jul 13 '11 at 22:26picturefor new code. – Martin Scharrer Jul 17 '11 at 13:19