設定頁邊距和行距

設定頁邊距和行距

我正在使用本文檔的模板,並且希望將每邊的邊距設定為 2.5 公分。我的 .tex 檔案的頂部如下所示:

% $Id: $
\pdfpxdimen=1in

\divide\pdfpxdimen by 150

\documentclass[a4paper,12pt]{report}

如何將頁邊距設定為 2.5 公分?

另一個問題:是否可以為零件設定不同的線距abstract,以及如何設定?

答案1

使用幾何包設定空間包

\documentclass{article}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{setspace}
\begin{document}
\begin{abstract}
\doublespacing
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
\end{abstract}
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.
\end{document}

相關內容