[XeTeX] strange difference
Apostolos Syropoulos
asyropoulos at yahoo.com
Sun May 29 21:16:07 CEST 2022
Hello,
I am trying to create an animation and each frame is an image created with TikZ. Thecode looks like this:
\documentclass[border=9,tikz]{standalone}
\usepackage{graphicx}
\usepackage{xltxtra}
\begin{document}
\setmainfont[Mapping=tex-text,Ligatures=Common]{Minion Pro}
\setsansfont[Scale=MatchLowercase,Mapping=tex-text]{Arimo}
\setmonofont[Scale=MatchLowercase]{UM Typewriter}
\tikz{
\path[save path=\cloud](-1,2)--(13,2);
\path[save path=\hill](3,2)--(4,2)..controls(7,5)..(11,2)--(15,2);
\begin{scope}[blend group=darken]
\begin{scope}[dash pattern=on2off4,line width=12,darkgray]
\draw[use path=\cloud];
\draw[use path=\hill];
\end{scope}
\begin{scope}[blend group=normal]
\draw[use path=\cloud][line width=8];
\draw[use path=\cloud][line width=6,white];
\end{scope}
\begin{scope}[blend group=normal]
\draw[use path=\hill][line width=8];
\draw[use path=\hill][line width=6,white];
\end{scope}
\end{scope}
\node[inner sep=0pt] (light) at (3.5,4)
{\includegraphics[scale=0.5]{traffic-light.pdf}};
%%%%
\node[inner sep=0pt] (light) at (1,2.1)
{\includegraphics[scale=0.1]{TRAIN-crop.pdf}};
%%%%
\draw (5.5, 5) rectangle (8.5, 6) node[pos=.5] {\small\texttt{print("postive")}};
}
\end{document}
The page size of the resulting file has paper size equal to 166 x 47 mm. However, when I change
the command that places the PDF image TRAIN-crop.pdf so to place the image in a different
position but within the bounds of the first image, the resulting PDF image has paper size equal
to 166 x 46 mm! The two files differ as follows:
28,29c28,29
< \node[inner sep=0pt] (light) at (1,2.1)
< {\includegraphics[scale=0.1]{TRAIN-crop.pdf}};
---
> \node[inner sep=0pt] (light) at (5.2,3.5)
> {\includegraphics[scale=0.1,angle=45]{TRAIN-crop.pdf}};
The question is why do I get different paper sizes? It might be something obviousbut I cannot see it...
Regards,
Apostolos
----------------------Apostolos Syropoulos
Xanthi, Greece
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20220529/f25eddb3/attachment.html>
More information about the XeTeX
mailing list.