<html><head></head><body><div class="ydpfaa920a6yahoo-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">Thanks for having a look at this problem. I changed a bit the source files<br></div><div dir="ltr" data-setdir="false">by replacing <br></div><div dir="ltr" data-setdir="false"><div><br></div><div>\documentclass[border=9,tikz]{standalone} <br></div><div><br></div><div>with </div><div><br></div><div>\documentclass[a4paper,landscape]{article}</div><div><br></div><div dir="ltr" data-setdir="false"> Also, I added the command <span><br></span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>\thispagestyle{empty} <br></span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>just before the</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span> \end{document}</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>Then compiled the files and then I used pdfcrop to crop the white space.<br></span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>All files had the same size! Of course now I "understand" what the problem was,</span></div><div dir="ltr" data-setdir="false"><span>but I had the impression that since the image is placed within the bounding box</span></div><div dir="ltr" data-setdir="false"><span>of the final output, it would not affect its final size. To me this is a bug. And the</span></div><div dir="ltr" data-setdir="false"><span>"recipe" I presented above shows why this is a bug. The bounding box of all images</span></div><div dir="ltr" data-setdir="false"><span>is the same.<br></span></div></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Kindest regards,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Apostolos<br></div><div dir="ltr" data-setdir="false"><br></div><div class="ydpfaa920a6signature"><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><br></div><div><br></div>
</div><div id="ydpc8df571byahoo_quoted_4622730098" class="ydpc8df571byahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Tuesday, May 31, 2022, 07:19:29 PM GMT+3, Heiko Oberdiek via XeTeX <xetex@tug.org> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr"><br clear="none"><br clear="none">On 2022-05-29 21:16, Apostolos Syropoulos via XeTeX wrote:<br clear="none"><br clear="none">> [...] The two files differ as follows:<br clear="none">> <br clear="none">> 28,29c28,29<br clear="none">> < \node[inner sep=0pt] (light) at (1,2.1)<br clear="none">> < {\includegraphics[scale=0.1]{TRAIN-crop.pdf}};<br clear="none">> ---<br clear="none">>> \node[inner sep=0pt] (light) at (5.2,3.5)<br clear="none">>> {\includegraphics[scale=0.1,angle=45]{TRAIN-crop.pdf}};<br clear="none"> ><br clear="none">> The question is why do I get different paper sizes?<br clear="none"><br clear="none">You know that the size of the second \includegraphics with angle=45<br clear="none">is different?<br clear="none"><br clear="none">The size of the second \includegraphics is a *square*. If w1 and h1<br clear="none">are the width and height of the first \includegraphics, then<br clear="none">the width w2 and h2 of the second \includegraphics with angle=45 are:<br clear="none"><br clear="none"> w2 = h2 = sqrt(1/2) * (w1 + h1)<div class="ydpc8df571byqt0839456619" id="ydpc8df571byqtfd19817"><br clear="none"><br clear="none">or</div><br clear="none"> w2 + h2<br clear="none"> ------- = sqrt(2) ≈ 1.4142<br clear="none"> w1 + h1<br clear="none"><br clear="none">Yours sincerely<br clear="none"> Heiko<div class="ydpc8df571byqt0839456619" id="ydpc8df571byqtfd44497"><br clear="none"></div></div></div>
</div>
</div></body></html>