[OS X TeX] includegraphics in xelatex and filenames with spaces

Jonathan Kew jonathan_kew at sil.org
Wed Feb 6 11:53:20 CET 2008


On 6 Feb 2008, at 10:31 am, Maarten Sneep wrote:

>
> On 5 feb 2008, at 12:55, Jonathan Kew wrote:
>
>> Right; this is the default up to 0.996; it will change in 0.997,  
>> for better compatibility across platforms, better performance on  
>> most files, support for virtual fonts, and better support for a  
>> variety of LaTeX packages. The downside will be the loss of  
>> support for older Mac font formats (LWFN-package PostScript), and  
>> for a bunch of graphics formats, including TIFF, until/unless  
>> support for these is added to xdvipdfmx.
>>
>> xdv2pdf remains available but you'll have to explicitly choose to  
>> use it if you want it (in 0.997 and beyond). For most users and  
>> most documents, xdvipdfmx seems to be the better default.
>
> Will the error message be produced by latex of by xetex? What error  
> message will xelatex produce when a tiff file is encountered while  
> using xdvipdfmx? I'm asking to reduce the number of messages on the  
> various mailing lists.

XeTeX or XeLaTeX has no way of knowing the capabilities of the output  
driver you will use; it just generates (extended) DVI with references  
to the image files. So you won't get an error message from XeTeX  
itself or from the LaTeX macros if you use a graphics format that the  
driver doesn't handle; the only thing that can report this is the xdv- 
to-pdf driver itself.

Therefore, I think it will be best if the default xetex.def file  
shipped with XeTeX 0.997-based systems configures the LaTeX graphics  
package to recognize only PDF, JPEG, PNG, BMP, and EPS files, as  
those should work universally.

If Mac users want to run xdv2pdf and use additional formats, there  
could be an alternative graphics option to access this, but it will  
be the user's responsibility to select it; it won't happen  
automatically. Something like

   \usepackage[xdv2pdf]{graphicx}

could be used load a .def file that recognizes all graphics formats,  
when the default [xetex] option is restricted to the formats that  
xdvipdfmx supports.

By the time TeX Live 2008 ships, I hope all this will be more  
settled....

JK




More information about the macostex-archives mailing list