[XeTeX] xelatex and geometry
Ulrike Fischer
news2 at nililand.de
Wed Mar 26 11:25:31 CET 2008
Hello,
I'm used to call geometry almost always with the option dvips:
\usepackage[dvips,...]{geometry}
This works fine with latex + dvips, and it also works with pdflatex as
\Gm at checkdrivers corrects the driver.
It would also work with xelatex if geometry.cfg for XeLaTeX (JK
2006-06-07) wouldn't contain a \let\Gm at checkdrivers\relax and so the
\specials for dvips are not set.
As far as I can see \Gm at checkdrivers is a problem for xelatex because of
this switch which leads to an undefined control sequence error because
of the \pdfoutput:
\ifx\pdfpagewidth\@undefined\else
\ifnum\pdfoutput=\@ne
\Gm at setdriver{pdftex}%
\fi
\fi
So I would suggest to use
\@ifundefined{XeTeXversion}{}{%
\def\pdfoutput{1}%
}
in the cfg.
--
Ulrike Fischer
More information about the XeTeX
mailing list