Text FormattingLinebreaks in verse environment

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am

Linebreaks in verse environment

Post by Sekantombi »

I'm sure there's something I'm missing, but I'm trying to create blank lines between sections of verse and my distribution won't buy it. I have tried empty lines with '\\', '\newline' and '\linebreak', and get back the message 'There's no line here to end' and\or nothing (no empty line).

Any suggestions?

S.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Linebreaks in verse environment

Post by gmedina »

How about using the \vspace command or the optional argument of the \\ comand?. Take a look at the following example:

Code: Select all

\documentclass{article}

\begin{document}

\begin{verse}
There was an old party of Lyme \\
Who married three wives at one time. \\
When asked: ‘Why the third?’ \\
He replied: ‘One’s absurd, \\
And bigamy, sir, is a crime.’\\[10em]

There was an old party of Lyme \\
Who married three wives at one time. \\
When asked: ‘Why the third?’ \\
He replied: ‘One’s absurd, \\
And bigamy, sir, is a crime.’
\end{verse}

\newpage

\begin{verse}
There was an old party of Lyme \\
Who married three wives at one time. \\
When asked: ‘Why the third?’ \\
He replied: ‘One’s absurd, \\
And bigamy, sir, is a crime.’\\

\vspace{2cm}

There was an old party of Lyme \\
Who married three wives at one time. \\
When asked: ‘Why the third?’ \\
He replied: ‘One’s absurd, \\
And bigamy, sir, is a crime.’
\end{verse}
\end{document}
By the way, the verse package could be of interest to you.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am

Re: Linebreaks in verse environment

Post by Sekantombi »

Thanks — this looks good.

I realised can also use \bigskip et cetera (rusty on LaTeX) — but I will look at the Verse package.

Vspace looks good: flexible.

S.
tilfaeldig
Posts: 2
Joined: Wed Jan 13, 2021 4:37 am

Linebreaks in verse environment

Post by tilfaeldig »

I did try same as you Sekantombi \{ldots}
and took me a 'wee' time to figure it out (rightfully ! ;P).

Last line should omit \\ to get the blank line

Could be as 'simple' as this;

Code: Select all

\documentclass{article}
     
    \begin{document}
     
    \begin{verse}
    There was an old party of Lyme \\
    Who married three wives at one time. \\
    When asked: ‘Why the third?’ \\
    He replied: ‘One’s absurd, \\
    And bigamy, sir, is a crime.’
     
    There was an old party of Lyme \\
    Who married three wives at one time. \\
    When asked: ‘Why the third?’ \\
    He replied: ‘One’s absurd, \\
    And bigamy, sir, is a crime.’
    \end{verse}
     
    \newpage
     
    \begin{verse}
    There was an old party of Lyme \\
    Who married three wives at one time. \\
    When asked: ‘Why the third?’ \\
    He replied: ‘One’s absurd, \\
    And bigamy, sir, is a crime.’
     
    There was an old party of Lyme \\
    Who married three wives at one time. \\
    When asked: ‘Why the third?’ \\
    He replied: ‘One’s absurd, \\
    And bigamy, sir, is a crime.’
    \end{verse}
    \end{document}
Last edited by cgnieder on Wed Jan 13, 2021 8:10 pm, edited 1 time in total.
Post Reply