将诗歌标题与诗句对齐

将诗歌标题与诗句对齐

如何将verse环境中的诗歌标题与诗歌文本对齐?

\poemtitle{Raven}
\begin{verse}[\linewidth]
Once upon a midnight dreary, while I pondered, weak and weary,\\*
Over many a quaint and curious volume of forgotten lore—\\*
While I nodded, nearly napping, suddenly there came a tapping,\\*
As of some one gently rapping, rapping at my chamber door.\\*
“’Tis some visitor,” I muttered, “tapping at my chamber door—\\*
Only this and nothing more.”

给我:

在此处输入图片描述

我希望“Raven”的标题能够与诗歌的诗句左对齐,无论是在左页还是右页。

答案1

感谢@egreg 的建议,我最终成功让它发挥作用:

\renewcommand{\poemtitlefont}{\raggedright\normalfont\large\bfseries\hspace{\leftmargin}}

相关内容