在 Vert 环境中更改字体大小时行距不一致

在 Vert 环境中更改字体大小时行距不一致

我注意到,当我想更改verse环境中的默认字体大小时,一节中最后两行之间的间距会受到不利影响。

例如,在下面的代码中,我已将\large默认字体大小设置为文档默认大小;但是,当我将默认字体大小更改为较大的字体大小(例如)时\Large,节中最后两行之间的间距会比其他节中的间距更大。另一方面,当我选择较小的字体大小(例如)时\small,情况则相反。

以下是 MWE:

\documentclass{book}

\begin{document}
\thispagestyle{empty}

\large

\begin{verse}
\begin{Large}
{\texttt{This is a line in a stanza \\
\hskip 15pt This is a line in a stanza \\
This is a line in a stanza \\
\hskip 15pt This is a line in a stanza.}}
\end{Large}
\end{verse}

\vskip 25pt

\begin{verse}
\begin{small}
{\texttt{This is a line in a stanza \\
\hskip 15pt This is a line in a stanza \\
This is a line in a stanza \\
\hskip 15pt This is a line in a stanza.}}
\end{small}
\end{verse}

\vskip 20pt

\begin{center}
\begin{verse}
\begin{small}
{\texttt{This is a line in a stanza \\
\hskip 15pt This is a line in a stanza \\
This is a line in a stanza \\
\hskip 15pt This is a line in a stanza.}}
\end{small}
\end{verse}
\end{center}

\end{document}

输出:

在此处输入图片描述

最后,我希望能够将节居中,但是\begin{center};\end{center}如您所见,不起作用。此外,尝试使用 等将节强制移到右侧也\hskip 25pt不起作用。

问题:有人知道是什么导致了前面提到的奇怪的间距行为吗?以及如何在诗歌环境中将一个诗节置于中心?

谢谢。

答案1

不要\begin{Large} ... \end{Large}只使用简单\Large且类似的方法更改其他字体大小。该verse软件包可让您居中行文以及其他有用的功能。

% verseprob.tex  SE 587976

\documentclass{book}

\usepackage{verse}

\begin{document}
\thispagestyle{empty}

\large

\begin{verse}
%\begin{Large}
\Large
{\texttt{This is a line in a stanza \\
\hskip 15pt This is a line in a stanza \\
This is a line in a stanza \\
\hskip 15pt This is a line in a stanza.}}
%\end{Large}
\end{verse}

\vskip 25pt

\begin{verse}
%\begin{small}
\small
{\texttt{This is a line in a stanza \\
\hskip 15pt This is a line in a stanza \\
This is a line in a stanza \\
\hskip 15pt This is a line in a stanza.}}
%\end{small}
\end{verse}

\vskip 20pt

\begin{center}
\begin{verse}
\begin{small}
{\texttt{This is a line in a stanza \\
\hskip 15pt This is a line in a stanza \\
This is a line in a stanza \\
\hskip 15pt This is a line in a stanza.}}
\end{small}
\end{verse}
\end{center}

%%%% with the verse package
\settowidth{\versewidth}{But now my love is dead}
\poemtitle{Loves's lost}
\begin{verse}[\versewidth]
\begin{altverse}
I used to love my garden \\
But now my love is dead \\
For I found a batchelor's button \\
In Black-eyed Susan's bed.
\end{altverse}
\end{verse} 

\end{document}

在此处输入图片描述

相关内容