[XeTeX] XeTeXpicfile

Heiko Oberdiek heiko.oberdiek at googlemail.com
Fri Nov 11 12:30:27 CET 2011


On Fri, Nov 11, 2011 at 08:55:33AM +0000, Philip TAYLOR wrote:

> The documentation states :
> 
> >\XeTeXpicfile ‹filename› [ scaled ‹int› | xscaled ‹int› | yscaled ‹int› |
> >width ‹dimen› | height ‹dimen› | rotated ‹decimal› ]
> 
> and indeed, an attempt to use XeTeXpicfile with a fractional scale
> factor such as 0.666, as in
> 
> 	XeTeXpifile myimage.png scaled 0.666
> 
> leads to
> 
> >** WARNING ** Transformation matrix not invertible.
> >** WARNING ** --- M = [0 0 0 0 -43.6535 -396.088]

The "scaled" in "(|x|y)scaled" is TeX jargon and means per mille.
Unscaled is 1000. For a scaling factor of two third, the decimal
number is multiplied by 1000 and converted to an integer: scaled 667
If you indeed would need a higher precision, then you can try to
scale the result afterwards.

The graphics driver xetex.def scales the images by a separate
scale operation except for PostScript images. In the latter case
\special{PSfile="myimage.eps" ...} is used with the restriction
of integer numbers (bounding box for size and the final width/height
with unit pt or bp).

Yours sincerely
  Heiko Oberdiek


More information about the XeTeX mailing list