[XeTeX] issue with xetex and geometry

Bruno Voisin bvoisin at me.com
Wed Jul 30 10:20:01 CEST 2008


Le 30 juil. 08 à 09:34, Ulrike Fischer a écrit :

> You need a geometry.cfg special for xelatex:
>
> %% geometry.cfg for XeLaTeX - version of 2008-03-26
>
> \@ifundefined{XeTeXversion}{}{%
> %% override to use the "pdftex" driver
> %% (i.e., \pdfpagewidth, \pdfpageheight) with XeTeX
> \def\Gm at checkdrivers{%
>       \Gm at setdriver{pdftex}%
> }%
> }%
>
> \endinput
>
> %% End of file `geometry.cfg'.

TeXLive-2008 (currently in beta) includes an older version:

%% geometry.cfg for XeLaTeX - JK 2006-06-07
% Public domain

\@ifundefined{XeTeXversion}{}{
	%% Use the "pdftex" driver (i.e., \pdfpagewidth, \pdfpageheight) with  
XeTeX
	\Gm at setdriver{pdftex}
	
	%% don't check this AtBeginDocument, just believe me!
	\let\Gm at checkdrivers\relax
}

\endinput

%% End of file `geometry.cfg'.

Which one should we use?

Bruno Voisin



More information about the XeTeX mailing list