[XeTeX] XeTeX equivalent to \pdfpagewidth ?

Ulrike Fischer news3 at nililand.de
Mon Jul 5 09:29:16 CEST 2010

Am Sun, 4 Jul 2010 23:52:24 -0700 schrieb Will Robertson:

>> But if you set \pdfpagewidth you should also set \pdfpageheight. At
>> least on my system (miktex 2.7) xetex will otherwise \pdfpagewidth
>> setting.
>> \documentclass{article}
>> \pdfpagewidth=20cm
>> %\pdfpageheight=15cm %needed too.
> IMO this should be reported as a bug.
> But what do I know... does this the same thing happen in pdftex?

I would say it is more a feature ;-)

For pdftex  \pdfpagewidth and \pdfpageheight are set in
pdftexconfig.tex to sensible default values e.g. A4paper. But the
initial values of \pdfpagewidth and \pdfpageheight are 0pt in xetex.
Changing only \pdfpagewidth means that \pdfpageheight has still the
value 0pt - so it is quite good that xetex ignores this page size
and falls back to the default setting from dvipdfmx.cfg.  

Ulrike Fischer 

More information about the XeTeX mailing list