Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
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 –  Henrik Hansen 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 :) –  Henrik Hansen 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. –  John Wickerson May 25 '13 at 18:59
show 4 more comments

2 Answers

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

share|improve this answer
add comment

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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