暂时增加行距

暂时增加行距

如何临时增加行距?我的标题页上有一些文字:

\begin{center}
{ \Large \textbf{The Great Thesis About Some Very Great Things Indeed With
a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So} }
\end{center}

我发现这里的行距太小了,但文档中的其他地方都没有问题。我怎样才能只将这段文字的行距调大一些?

答案1

只需在关闭与 \Large 关联的组之前结束该段落,即可\baselineskip应用相应的内容;您可以通过添加来执行此操作\par

\documentclass{article}

\begin{document}

\begin{center}
\Large\textbf{The Great Thesis About Some Very Great Things Indeed With
a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So}
\end{center}

\begin{center}
\Large\textbf{The Great Thesis About Some Very Great Things Indeed With
a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So}\par
\end{center}

\end{document}

以下是两个结果的比较:

在此处输入图片描述

我删除了外面的括号,因为它们没有必要,因为center环境已经形成了一个组。

如果您想要更好地控制间距,您可以使用第二个参数\fontsize(第一个参数给出字体大小);一个小例子:

\documentclass{article}

\begin{document}

\begin{center}
\fontsize{15pt}{15pt}\selectfont\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\begin{center}
\fontsize{15pt}{18pt}\selectfont\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\begin{center}
\fontsize{15pt}{30pt}\selectfont\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\end{document}

现在生产:

在此处输入图片描述

另一种选择是更改强制参数中的因子,而不需要您明确知道字体大小\linespread

\documentclass{article}

\begin{document}

\begin{center}
\linespread{1}\Large\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\begin{center}
\linespread{0.8}\Large\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\begin{center}
\linespread{2}\Large\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\end{document}

在此处输入图片描述

另一个选择是重新定义\baselinestretch;下面的代码将产生与上面所示相同的结果:

\documentclass{article}

\begin{document}

\begin{center}
\renewcommand\baselinestretch{1}\Large\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\begin{center}
\renewcommand\baselinestretch{0.8}\Large\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\begin{center}
\renewcommand\baselinestretch{2}\Large\bfseries The Great Thesis About Some Very Great Things Indeed With a Pretty Long Title That Will Probably Be Split Between at Least Two Lines
Or So
\end{center}

\end{document}

最后,还有设置空间包为您提供了一系列命令和环境来“以合理的方式”改变的值\baselineskip

答案2

如果文本设置为正常行距,字体较大,则需要确保段落结尾在大小变化范围内。删除环境开始和结尾处的括号。

相关内容