[XeTeX] XeTeX equivalent to \pdfpagewidth ?

Heiko Oberdiek heiko.oberdiek at googlemail.com
Mon Jul 5 10:41:02 CEST 2010


On Sun, Jul 04, 2010 at 11:52:24PM -0700, Will Robertson wrote:

> On 2010-07-02 07:22:18 -0700, Ulrike Fischer <news3 at nililand.de>
> said:
> 
> >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?

No:

\catcode`\{=1
\catcode`\}=2
\pdfoutput=1
\pdfobjcompresslevel=0
\pdfpagewidth=0bp
\pdfpageheight=0bp
\shipout\hbox{}
\pdfpagewidth=100bp
\shipout\hbox{}
\pdfpagewidth=0bp
\pdfpageheight=100bp
\shipout\hbox{}
\end

$ pdftex --ini test
$ grep -a MediaBox test.pdf
/MediaBox [0 0 144 144]
/MediaBox [0 0 100 144]
/MediaBox [0 0 144 100]

Yours sincerely
  Heiko Oberdiek


More information about the XeTeX mailing list