
我正在編寫一個論文模板,其屬性類似於Word模板。
在 MS Wors 中:字體大小 = 14pt,行距 = 1.2,章節/節/小節標題之前的空格 = 30pt/27pt/20pt。
到目前為止我所做的是:
- 加載後
extbook.cls
我fontsize=14pt
設定了\setlength{\p@}{1bp}
。 (如word中的14pt)- 然後,在模板的末尾我設定
\renewcommand\baselinestretch{1.23429}
(=1.2在word中)- 然後我改成了
\parskip
a bit more than\baselinestretch
(我不知道\parskip
word 中 的具體值,但好像是 a bit more than\baselinestretch
)。
我確信(大部分)第二個變化\baselinestretch
與單字中的類似變化完全相同。 (透過比較其輸出)。但
問題一:為什麼設定後
\setlength{\p@}{1bp}
,\baselinestretch{1.2}
不等於word中的類似內容?問題2:如何防止由舊
parskip
的空格定義的其他變更(跳過段落除外)sections
?
\documentclass[14pt,a4paper]{extbook}
\usepackage{lipsum}
\makeatletter
\setlength{\p@}{1bp}
\makeatother
\setlength{\parskip}{1.2\baselineskip}
\renewcommand\baselinestretch{1.23429}
\begin{document}
\tableofcontents
\chapter{First Chapter} \pagebreak
\section{First Section}
\lipsum[1-2]
\subsection{First Subsection}
\chapter{Second Chapter} \pagebreak
\section{Second Section}
\lipsum[1-2]
\subsection{Second Subsection}
\lipsum[1-2]
\end{document}