[XeTeX] xetex and graphics: strange behavior

Jonathan Kew jonathan_kew at sil.org
Mon Dec 6 11:30:27 CET 2004


On 6 Dec 2004, at 10:25 am, Michael Gedalin wrote:

> The following is typeset ok:
>
>
> \documentclass{article}
> \usepackage[xetex]{graphicx}
> \begin{document}
> test
> \includegraphics[width=0.8\textwidth]{filename.pdf}
> \end{document}
>
> The following fails:
>
> \documentclass{article}
> \usepackage[xetex]{graphicx}
> \begin{document}
> test
> \includegraphics[width=1.2\textwidth]{filename.pdf}
> \end{document}
>
>  I get endless running unreadables
> ][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] 
> [][][][]
> [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][ 
> ][][][][
> ][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][] 
> [][][][]
> [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][ 
> ][][][][
> ]
>
> There is no problem with pdftex in both cases. What's wrong ?

Aha! This looks like an instance of the same bug the ConTeXt people  
have been complaining about, where XeTeX gets into a loop trying to  
show the contents of an overfull box. Having a non-ConTeXt way to  
reproduce it should help me pin it down, so thanks for the report!

To avoid the problem for now, you'd need to find a way to suppress the  
overfull box display; e.g., don't try to include graphics that are  
wider than \textwidth! Or if you really want a graphic projecting into  
the margin, you could put it in a box and add enough negative space to  
convince the engine that it still fits on the page.

Or set a large \hfuzz value, to suppress such warnings.

Sorry about the problem; it's pretty clear it's an internal XeTeX bug.

JK



More information about the XeTeX mailing list