[XeTeX] xelatex and geometry

Andreas Matthias amat at kabsi.at
Wed Mar 26 14:43:28 CET 2008


Jonathan Kew wrote:

> On 26 Mar 2008, at 10:25 am, Ulrike Fischer wrote:
> 
>> So I would suggest to use
>> 
>> \@ifundefined{XeTeXversion}{}{%
>> \def\pdfoutput{1}%
>> }
> 
> That would almost certainly lead to breakage when other packages try  
> to check for pdfTeX-specific functionality by looking at \pdfoutput.

But that's what geometry.cfg from the current svn-version does, doesn't it?


\@ifundefined{XeTeXversion}{}{
        %% Use the "pdftex" driver (i.e., \pdfpagewidth, \pdfpageheight) with XeTeX
        \Gm at setdriver{pdftex}
        
        %% make geometry.sty believe this is valid
        \@ifundefined{pdfoutput}{
          \newcount\pdfoutput \pdfoutput=1
        }{}
}


Ciao
Andreas



More information about the XeTeX mailing list