为什么即使源文件是双倍行距,PDF 最终也会变成单倍行距?

为什么即使源文件是双倍行距,PDF 最终也会变成单倍行距?

我刚刚从https://graduate.utdallas.edu//current_students/dissertation_and_thesis/。要获取该页面中的文档,请单击“Latex 模板”。它包括一个 .cls 文件、一个示例 .tex 和 .pdf 输出。它是可编译的,我的 pdf 输出是单倍行距,但包括模板作者在内的其他人都有双倍行距,所以这一定是我的问题。(我尝试在 中运行它TeXstudio,日志显示一个坏框Underfull \vbox (badness 2384) has occurred while \output is active,但我认为这可能无关紧要?)

很明显你可以看到我的 pdf 输出是单倍行距

答案1

同时,在纠正班级的同时,添加

\def\baselinestretch{1.655}\selectfont 或者

\linespread{1.655}\selectfont

之后\maketitle和之前\begin{acks}

(大部分)重现sample.pdf

C

d

\maketitle

\linespread{1.655}\selectfont  % <<<<  added

\begin{acks}{December 2012} % date when thesis first submitted to committee
The author thanks Amanda Aiuvalasit and Wanda Trotta in the Office of the
Graduate Dean for their time proofing sample documents produced by this
class file and reexamining various details of the UTD thesis guidelines
that arose during its creation.
\end{acks}

相关内容