![如何保持首頁首頁腳距離相同,之後更小?](https://rvso.com/image/330721/%E5%A6%82%E4%BD%95%E4%BF%9D%E6%8C%81%E9%A6%96%E9%A0%81%E9%A6%96%E9%A0%81%E8%85%B3%E8%B7%9D%E9%9B%A2%E7%9B%B8%E5%90%8C%EF%BC%8C%E4%B9%8B%E5%BE%8C%E6%9B%B4%E5%B0%8F%EF%BC%9F%20.png)
有沒有一種方法可以讓我保留第一頁的原始頁首/頁尾大小,然後在第二頁中使用較小的邊距?
答案1
最好的選擇是使用套件\newgeometry
中的命令
geometry
。
\newgeometry
允許您更改文件中間的頁面尺寸。
有關詳細信息,請參閱第 7 節更改文件中的佈局包文檔。
這是具有上述想法的程式碼。
\documentclass{article}
\usepackage[left=30.0mm,right=30.0mm,top=30.0mm,bottom=30.0mm]{geometry}
\usepackage{lipsum}
\begin{document}
% First page with wider margins
\lipsum[1-7]
\clearpage
% Later pages with narrower margins
\newgeometry{left=10.0mm,right=10.0mm,top=10.0mm,bottom=10.0mm}
\lipsum[11-20]
\end{document}