[XeTeX] XeTeX fails on dragged PDF images
Bruno Voisin
bvoisin at mac.com
Mon Oct 4 10:24:38 CEST 2004
Le 4 oct. 04, à 04:24, Ross Moore a écrit :
> OK, the [xetex] option to graphicx was not implicit.
> (I'll have to fix my graphics.cfg to make it so!)
Hi Ross,
What I did on my setup is replace, in color.cfg and graphics.cfg,
> % Select an appropriate default driver
> \begingroup
> \chardef\x=0 %
> % check pdfTeX
> \@ifundefined{pdfoutput}{}{%
> \ifcase\pdfoutput
> \else
> \chardef\x=1 %
> \fi
> }%
> % check VTeX
> \@ifundefined{OpMode}{}{%
> \chardef\x=2 %
> }%
> \expandafter\endgroup
> \ifcase\x
> % default case
> \ExecuteOptions{dvips}%
> \or
> % pdfTeX is running in pdf mode
> \ExecuteOptions{pdftex}%
> \else
> % VTeX is running
> \ExecuteOptions{vtex}%
> \fi
by
> % Select an appropriate default driver
> \begingroup
> \chardef\x=0 %
> % check pdfTeX
> \@ifundefined{pdfoutput}{}{%
> \ifcase\pdfoutput
> \else
> \chardef\x=1 %
> \fi
> }%
> % check VTeX
> \@ifundefined{OpMode}{}{%
> \chardef\x=2 %
> }%
> % check XeTeX
> \@ifundefined{XeTeXversion}{}{%
> \chardef\x=3 %
> }%
> \expandafter\endgroup
> \ifcase\x
> % default case
> \ExecuteOptions{dvips}%
> \or
> % pdfTeX is running in pdf mode
> \ExecuteOptions{pdftex}%
> \or
> % VTeX is running
> \ExecuteOptions{vtex}%
> \else
> % XeTeX is running
> \ExecuteOptions{xetex}%
> \fi
(Actually I put corrected copies inside
~/Library/texmf/tex/xetex/config/.)
I'm surprised there's no similar switch for hyperref.cfg, that for
XeTeX would load [dvipdfm] automatically.
On other topic, in your xetex.def, is one of the recognized extensions
for graphical files .sgi or .sga? (I must confess I don't know what
.psd, .mac, .sgi and .tga are.)
> % For a new graphics type, you can include a line here ...
> \@namedef{Gin at rule@.pdf}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.gif}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.jpg}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.mac}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.pict}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.png}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.psd}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.sgi}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.tga}#1{{QTm}{QTm}{#1}}
> \@namedef{Gin at rule@.tif}#1{{QTm}{QTm}{#1}}
>
> [...]
>
> % ... and add it's extension here
> \def\Gin at extensions{.pdf,.png,.jpg,.pict,.tif,.psd,.mac,.sga,.tga,.gif}
Bruno
More information about the XeTeX
mailing list