如何保持首頁首頁腳距離相同,之後更小?

如何保持首頁首頁腳距離相同,之後更小?

有沒有一種方法可以讓我保留第一頁的原始頁首/頁尾大小,然後在第二頁中使用較小的邊距?

答案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}

相關內容