Alterando as margens da página em {pdf-,Xe-}TeX

Alterando as margens da página em {pdf-,Xe-}TeX

No TeX, alterar o \hsizee \vsizealtera o tamanho do texto principal e o tamanho da página da saída dvi. Quando compilo um documento com pdftex ou xetex, o tamanho da página permanece em A4. Como posso alterar as margens da página?

Exemplo mínimo:

\hsize=5cm \vsize=4cm
\footline{\hfil The page ends here!\hfil\the\pageno}
This document leaves much white space when {\tt pdftex\/}ed or {\tt xetex\/}ed.

\bye

Responder1

Solução para {Lua-,pdf-,Xe-}TeX

\hsize=2in \vsize=3in
\pdfpagewidth=4in
\pdfpageheight=5in
\footline{\hfil The page ends here!\hfil\the\pageno}
This document is by far better! Notice that \TeX{} starts every page
one inch away from the upper and left margin.
This example doesn't compile with {\tt tex} anymore.

\bye

informação relacionada