![{pdf-,Xe-}TeX에서 페이지 여백 변경](https://rvso.com/image/281587/%7Bpdf-%2CXe-%7DTeX%EC%97%90%EC%84%9C%20%ED%8E%98%EC%9D%B4%EC%A7%80%20%EC%97%AC%EB%B0%B1%20%EB%B3%80%EA%B2%BD.png)
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