考虑一下代码
\documentclass{book}
\begin{document}
\thispagestyle{empty}
\LARGE
\begin{center}
\begin{minipage}{5.75in}\leftskip\fill\rightskip-\leftskip\parfillskip\stretch{2}%
\textbf{How to increase the vertical spacing between the second-to-last and the last line? How to increase the vertical spacing between the second-to-last and the last line? How to increase the vertical spacing between the second-to-last and the last line?}
\end{minipage}
\end{center}
\end{document}
输出
有时,尽管在这里可能不那么明显——倒数第二行和最后一行之间的垂直空间明显小于其他连续行之间的垂直空间。
问题:如何\leftskip\fill\rightskip-\leftskip\parfillskip\stretch{2}%
修改宏对齐命令(或者也许另一种方法更合适)以增加最后两行之间的垂直空间仅有的---同时保持此 minipage 环境的对齐输出中其他行之间的当前垂直间距?
谢谢。
答案1
段落中所有行中的值\baselineskip
始终相同,因此您所描述的内容不可能发生,或者至少不会由于您给出的原因而发生。
如果某些项目大于适合的\baselineskp
行距,则会丢失,并使用\lineskip
而不是\baselineskip
,但这可能发生在任何一行,而不仅仅是最后一行。出现此问题的一个常见原因是错误放置了大小命令,例如,如果我在您的示例中移动\LARGE
:
\documentclass{book}
\begin{document}
\thispagestyle{empty}
\begin{center}
\begin{minipage}{5.75in}\leftskip\fill\rightskip-\leftskip\parfillskip\stretch{2}%
\textbf{\LARGE How to increase the vertical spacing between the
second-to-last and the last line? How to increase the vertical
spacing between the second-to-last and the last line? How to
increase the vertical spacing between the second-to-last and the
last line?}
\end{minipage}
\end{center}
\end{document}
但是,要回答标题中的问题并在最后一行之前添加空格,您可以使用最终规则。
\documentclass{book}
\begin{document}
\LARGE
\thispagestyle{empty}
\begin{center}
\begin{minipage}{5.75in}\leftskip\fill\rightskip-\leftskip\parfillskip\stretch{2}%
\textbf{How to increase the vertical spacing between the
second-to-last and the last line? How to increase the vertical
spacing between the second-to-last and the last line? How to
increase the vertical spacing between the second-to-last and the
last line?}\rule{0pt}{3cm}
\end{minipage}
\end{center}
\end{document}