<html><head></head><body><div class="ydp9157f0e5yahoo-style-wrap" style="font-family:garamond, new york, times, serif;font-size:16px;"><div><div dir="ltr" data-setdir="false">Hello,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I am trying to create an animation and each frame is an image created with TikZ. The</div><div dir="ltr" data-setdir="false">code looks like this:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div>\documentclass[border=9,tikz]{standalone}<br>\usepackage{graphicx}<br>\usepackage{xltxtra}<br>\begin{document}<br>\setmainfont[Mapping=tex-text,Ligatures=Common]{Minion Pro}<br>\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Arimo}<br>\setmonofont[Scale=MatchLowercase]{UM Typewriter}<br>\tikz{<br>    \path[save path=\cloud](-1,2)--(13,2);<br>    \path[save path=\hill](3,2)--(4,2)..controls(7,5)..(11,2)--(15,2);<br>    \begin{scope}[blend group=darken]<br>        \begin{scope}[dash pattern=on2off4,line width=12,darkgray]<br>            \draw[use path=\cloud];<br>            \draw[use path=\hill];<br>        \end{scope}<br>        \begin{scope}[blend group=normal]<br>            \draw[use path=\cloud][line width=8];<br>            \draw[use path=\cloud][line width=6,white];<br>        \end{scope}<br>        \begin{scope}[blend group=normal]<br>            \draw[use path=\hill][line width=8];<br>            \draw[use path=\hill][line width=6,white];<br>        \end{scope}<br>    \end{scope}<br>    \node[inner sep=0pt] (light) at (3.5,4)<br>    {\includegraphics[scale=0.5]{traffic-light.pdf}};<br>%%%%<br>    \node[inner sep=0pt] (light) at (1,2.1)<br>    {\includegraphics[scale=0.1]{TRAIN-crop.pdf}};<br>%%%%<br>    \draw (5.5, 5) rectangle (8.5, 6) node[pos=.5] {\small\texttt{print("postive")}}; <br>}<br>\end{document}<br><br></div><div dir="ltr" data-setdir="false">The page size of the resulting file has paper size equal to <span>166 x 47 mm. However, when I change <br></span></div><div dir="ltr" data-setdir="false"><span>the command that places the PDF image <span>TRAIN-crop.pdf so to place the image in  a different <br></span></span></div><div dir="ltr" data-setdir="false"><span><span>position but within the bounds of the first image, the resulting PDF image has paper size equal <br></span></span></div><div dir="ltr" data-setdir="false"><span><span>to <span>166 x 46 mm!</span> The two files differ as follows:</span></span></div><div dir="ltr" data-setdir="false"><span><span><br></span></span></div><div dir="ltr" data-setdir="false"><span><div>28,29c28,29<br><     \node[inner sep=0pt] (light) at (1,2.1)<br><     {\includegraphics[scale=0.1]{TRAIN-crop.pdf}};<br>---<br>>     \node[inner sep=0pt] (light) at (5.2,3.5)<br>>     {\includegraphics[scale=0.1,angle=45]{TRAIN-crop.pdf}};<br><br></div></span><div dir="ltr" data-setdir="false">The question is why do I get different paper sizes? It might be something obvious</div><div dir="ltr" data-setdir="false">but I cannot see it...</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Apostolos<br></div><span></span></div><div dir="ltr" data-setdir="false"><span><span><br></span></span></div><div dir="ltr" data-setdir="false"><span><span></span></span><br></div></div><div><br></div><div class="ydp9157f0e5signature"><div style="font-family:garamond, times, serif;font-size:16px;" class="ydp3fe4b644pasted-link"><div dir="ltr" style="font-family:courier, monaco, monospace, sans-serif;font-size:16px;"><div dir="ltr" class="ydpb4337f7epasted-link"><div dir="ltr"><font size="2" face="courier new, courier, monaco, monospace, sans-serif">----------------------</font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Apostolos Syropoulos<br></font></div><div><font size="2" face="courier new, courier, monaco, monospace, sans-serif">Xanthi, Greece</font></div><br></div><div><font size="2"><br></font><br></div></div></div></div></div></div></body></html>