我正在完成我的论文,遇到了一个小问题。论文格式要求目录中的章节标题如果太长,一行写不下,则使用单倍行距。图表和标题列表也是如此。我关注了帖子目录中的单倍行距长子节标题,并修改了我的章节标题,例如
\chapter{Implementation and modification of a three dimensional radiation stress formulation for surf zone and rip-current applications}
到
\chapter[\protect \vspace {-2ex}{Implementation and modification of a\\ three dimensional radiation stress formulation\\ for surf zone and rip-current applications]{Implementation and modification of a three dimensional radiation stress formulation for surf zone and rip-current applications}
这只部分起作用,因为我得到的目录中的输出前两行是单倍行距,但第三行是双倍行距。
如果我希望本例中所有三行都具有单倍行距,需要进行哪些修改?另外,一般来说,如果我需要“n”行(其中 n>2),应该怎么做?
我的班级档案已正式托管这里但它也已上传至 pastebin(33K)。
如果您需要更多信息来回答我的问题,请告诉我。
答案1
有一种可能性。假设您\usepackage[doublespacing]{setspace}
在序言中使用双倍行距来贯穿您的论文。那么您可以做的是将命令\tableofcontents
放在环境中\begin{spacing}{1}...\end{spacing}
:1
本地将间距恢复为单倍。
\documentclass[a4paper]{report}
\usepackage[margin=1in]{geometry}
\usepackage[doublespacing]{setspace}
\begin{document}
\begin{spacing}{1}
\tableofcontents
\end{spacing}
\chapter{Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Etiam condimentum lacus vel lacus commodo auctor.
Class aptent taciti sociosqu ad litora torquent per conubia
nostra, per inceptos himenaeos.}
Nam fermentum, nibh in vehicula pretium, ligula nibh laoreet turpis,
rhoncus dictum lectus libero id tellus.
Donec ultricies neque ut augue ultricies suscipit vitae nec leo. Sed
porta congue elit auctor vestibulum. Ut id ornare lectus, in convallis
urna. Nunc bibendum venenatis est, nec auctor nulla lacinia malesuada.
Duis commodo elementum lacinia. Phasellus nibh lorem, cursus vitae
mauris non, pretium dictum diam.
\chapter{Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Etiam condimentum lacus vel lacus commodo auctor. Class
aptent taciti sociosqu ad litora torquent per conubia nostra, per
inceptos himenaeos.}
Nam fermentum, nibh in vehicula pretium, ligula nibh laoreet turpis,
rhoncus dictum lectus libero id tellus.
Donec ultricies neque ut augue ultricies suscipit vitae nec leo. Sed
porta congue elit auctor vestibulum. Ut id ornare lectus, in convallis
urna. Nunc bibendum venenatis est, nec auctor nulla lacinia malesuada.
Duis commodo elementum lacinia. Phasellus nibh lorem, cursus vitae
mauris non, pretium dictum diam.
\end{document}