[XeTeX] Scaling graphics
herbs at wideopenwest.com
Fri Apr 30 16:11:27 CEST 2010
On Apr 30, 2010, at 8:55 AM, José Carlos Santos wrote:
> On 30-04-2010 12:28, Ulrike Fischer wrote:
>>> If I compile this file:
>>> with PDFLaTeX, then all goes well. But if I use XeLaTeX instead, then
>>> I get this:
>>> <use "Figura_3-1.jpg">
>>> Overfull \hbox (427.1866pt too wide) in paragraph at lines 4--5
>>> Can anyone tell me why?
>> I tried with an oversized jpg and can't reproduce your problem.
> I've put here:
> the .jpg that I used.
>> I'm using
>> This is XeTeX, Version 3.1415926-2.2-0.999.7 (MiKTeX 2.7) and
>> xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX
> Following a suggestion by Herb Schulz, I added \listfiles to the preamble of the document. What I got was:
> *File List*
> article.cls 2007/10/19 v1.4h Standard LaTeX document class
> size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
> graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
> keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
> graphics.sty 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
> trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
> graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
> xetex.def 2009/11/22 v0.94 LaTeX color/graphics driver for XeTeX (RRM/JK)
> Figura_3-1.jpg Graphic file (type QTm)
> So, we are using the same version of xetex.def. Furthermore, I am using:
> This is XeTeX, Version 3.1415926-2.2-0.9995.1 (MiKTeX 2.8)
> So, it is a slightly more recent version than yours (and the problem might lie there).
>> Did you check with other graphics?
> Yes. And I do have the same problem with other oversized graphics.
>> Perhaps your jpg is defective.
> I don't think so, but you can check yourself.
> Best regards,
> Jose Carlos Santos
With your jpg I can see that the image is being cut off. However, If I compare the original with the (cut off) result in the pdf I see that there has been scaling. If I change the scaling to 0.1 or 0.2 the full image fits.
(herbs at wideopenwest dot com)
More information about the XeTeX