5

I'm typesetting a book with some song lyrics, but at some points, the verses have too many words to fit on the page -- so they overflow and spill over to the next line. To make this read better I want to justify these orphans to the right.

So the question goes: How do I make the overflowing words and only the overflowing words justify to the right?

Here is a MWE that is essentially the same as my problem:

\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}

And a picture showing the MWE. The 'than both' is supposed to justify right.

enter image description here

Right justify inline seems like it could be adapted to work.

9
  • 1
    Can you make an example of a lyric you're typesetting? The answer mostly depends on how you do it.
    – egreg
    May 25 '13 at 17:16
  • @egreg I've made a new MWE that better shows how I'm working with the lyrics. I'm not sure that I can actually use the original lyrics, but at least the layout is more true to document I'm working with May 25 '13 at 17:55
  • 1
    Have you looked into the verse package?
    – egreg
    May 25 '13 at 17:59
  • I'm looking into it! It seems like it might do, but! I'd still like to see an answer to this question :) May 25 '13 at 18:09
  • 1
    A point of information: what you're referring to is not technically an "orphan". An orphan is a line of text that spills onto the next page or column, whereas you have a paragraph that spills onto the next line. May 25 '13 at 18:59
2

Following egreg's suggestion to use the verse package...

\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}

enter image description here

0

Based on a solution in justify inline I've found that this works too. (Requires manual work)

\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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.