[XeTeX] geometry.sty FIX for XeTeX 0.994

Jonathan Kew jonathan_kew at sil.org
Thu Jun 8 08:42:46 CEST 2006


On 8 Jun 2006, at 2:23 am, Herbert Schulz wrote:

>
> On Jun 7, 2006, at 6:17 AM, Jonathan Kew wrote:
>
>> I think there's actually a very simple fix for the geometry.sty issue
>> people have encountered. Just replace ..../tex/xelatex/geometry.cfg
>> with this version:
>>
>> - - - - - - - - - - cut here - - - - - - - - -
>> %% geometry.cfg for XeLaTeX - JK 2006-06-07
>>
>> %% Use the "pdftex" driver (i.e., \pdfpagewidth, \pdfpageheight) with
>> XeTeX
>> \Gm at setdriver{pdftex}
>>
>> %% make geometry.sty believe this is valid
>> \ifx\pdfoutput\@undefined
>>    \newcount\pdfoutput \pdfoutput=1
>> \fi
>>
>> \endinput
>>
>> %% End of file `geometry.cfg'.
>> - - - - - - - - - - cut here - - - - - - - - -
>> ...
>
> Howdy,
>
> Will xelatex processing really change a pagesize if geometry
> ``assumes'' it's using pdftex?

Yes.

> I thought the pages size settings had
> to be the same as those of dvipdfm?

Previously, the only way to control page size was to use \special 
{papersize....}, which is what dvipdfm, dvips, etc also used.

> That seemed to be what the older
> geometry.cfg forced. Maybe I'm just confused.

Version 0.994 introduced support for \pdfpagewidth and  
\pdfpageheight, which is now the preferred approach.

JK



More information about the XeTeX mailing list