强制标题为单倍行距

强制标题为单倍行距

我的标题占了两行。但是,不知为何,标题变成了双倍行距。如何才能强制标题变成单倍行距?

谢谢你!

答案1

假设您使用标准程序创建标题,则可以使用以下修复(尽管在这个特定示例中没有必要):

\documentclass{article}
\usepackage{lipsum}
\usepackage{setspace}
\usepackage{etoolbox}

\makeatletter
\AtBeginDocument{\preto\@title{\singlespacing}}% in case it isn't single spaced
\makeatother

\title{A very very very very very very very very very very very long title}
\author{MyseteryMan}
\date{}

\begin{document}
\maketitle
\lipsum
\end{document}

输出

相关内容