When I use the verse package, a single verse will not be ragged right if it is broken at the end of the line. How do I change it to being ragged right?



    This verse is very long and therefore will be typeset across two lines.

  • Can you please add to your question a MWE illustrating the problem? – Gonzalo Medina Jan 13 '15 at 20:57
  • I can not notice that behavior. Please add a MWE. – karlkoeller Jan 13 '15 at 20:57
  • Sorry, my fault. I forgot to add that it happens when you have two columns. The questions has been edited. – Deniz Jan 13 '15 at 21:01
  • But, by default (whether using article or scrartcl), the verse environment doesn't typeset the text in raggedright fashion. What exactly are you trying to achieve? Can you describe the desired output in more detail? – Gonzalo Medina Jan 13 '15 at 21:07
  • I misunderstood something. The problem is neither scrartcl nor the two columns. What I want to achieve is that a line with a line break is ragged-right, just like all the other lines. I will edit the question. – Deniz Jan 13 '15 at 21:15

By default, (whether using article or scrartcl), the verse environment doesn't typeset the text in ragged-right fashion.

If you want to use ragged-right text in the verse environment, you can use etoolbox package and add


to the preamble. A complete example:

\documentclass[twocolumn, fontsize=10pt]{scrartcl}



\poemtitle{In the beginning}
\settowidth{\versewidth}{And objects at rest tended to remain at rest}
Then God created Newton, \\
And objects at rest tended to remain at rest, \\
And objects in motion tended to remain in motion, \\
And energy was conserved
and momentum was conserved
and matter was conserved \\
And God saw that it was conservative. \\


The output:

enter image description here

Just for comparison, the output obtained commenting out the \AtBeginEnvironment line in my example code above:

enter image description here

Perhaps better to use


after loading the ragged2e package.

|improve this answer|||||

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.