我正在排版一本包含歌词的书,但有些地方歌词的字数太多,一页放不下——所以它们溢出并延伸到下一行。为了让这本书读起来更舒服,我想让这些孤行对齐到右边。
所以问题是:我如何才能使溢出的单词和仅溢出的单词右对齐?
这是一个与我的问题基本相同的 MWE:
\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
Verse one is really nice
So is verse two
Verse three is a whole lot longer than both
Verse four is shorter
\vspace{\fill}\pagebreak
\end{multicols}
\end{document}
还有一张显示 MWE 的图片。“比两者”应该证明是正确的。
右对齐内联看起来它可以适应工作。
答案1
根据 egreg 的建议使用verse
包裹...
\documentclass{article}
\usepackage[paperwidth=8cm,paperheight=10cm]{geometry}
\usepackage{verse}
\begin{document}
\begin{verse}
Verse one is really nice
So is verse two
Verse three is a whole lot longer than both
Verse four is shorter
\end{verse}
\end{document}
答案2
基于解决方案行内对齐我发现这也有效。(需要手动操作)
\documentclass{article}
\usepackage{multicol}
\begin{document}
begin{multicols}{2}
Verse one is really nice
So is verse two
Verse three is a whole lot longer \hspace*{\fill}than both
Verse four is shorter
\vspace{\fill}\pagebreak
\end{multicols}
\end{document}