{pdf-,Xe-}TeX에서 페이지 여백 변경

{pdf-,Xe-}TeX에서 페이지 여백 변경

TeX에서 \hsize및 를 변경하면 \vsize기본 텍스트 크기와 dvi 출력의 페이지 크기가 변경됩니다. pdftex 또는 xetex로 문서를 컴파일하면 페이지 크기가 A4로 유지됩니다. 페이지 여백을 어떻게 변경할 수 있나요?

최소한의 예:

\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

답변1

{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

관련 정보