[XeTeX] Scaling graphics

José Carlos Santos jcsantos at fc.up.pt
Fri Apr 30 15:55:06 CEST 2010


On 30-04-2010 12:28, Ulrike Fischer wrote:

>> If I compile this file:
>>
>> \documentclass{article}
>> \usepackage{graphicx}
>> \begin{document}
>> \includegraphics[scale=.4]{Figura_3-1.jpg}
>> \end{document}
>>
>> 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:

http://www.fc.up.pt/mp/jcsantos/imagens/Figura_3-1.JPG

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
> (RRM/JK)

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


More information about the XeTeX mailing list