[OS X TeX] \nopagebreak between verses.

Manuel libros2 at limay.de
Fri Dec 27 00:16:01 CET 2019


El 26/12/19 a las 19:07, Pieter van Oostrum escribió:
> Manuel <libros2 at limay.de> writes:
>
>> Good morning, everybody.
>>
>> I am typing a book of poems. In one instance:
>>
>>
>>    \section[El golpe de furca]{\large{El golpe de furca}}
>>
>> \begin{verse}
>>
>> Es el abrazo reo de una amistad más rea  \\
>> que marroca el gañote del grilo al antebrazo. \\
>> Amuro que hace manso al gil que más cocea  \\
>> y convierte en badana al púa y al machazo.  \\!
>>
>> Es el golpe infalible que protege el coraje  \\
>> y que entrega servido al otario más fuerte,  \\
>> golpe cuyo secreto lo conserva el reaje  \\ \nopagebreak
>> con una ya probada fidelidad de muerte.  \\!
>>
>> the last verse appears alone in the next page (how horrible!). I used
>> the command \nopagebreak, but it is ignored. I wonder wether this
>> doesn‘t work in the \verse environment or maybe I made some other
>> mistake. How can I avoid this?
>>
> The \nopagebreak, when used inside a paragraph, applies at the end of the current line. But as you put it after the \\, the current line is then the last line of the verse. So you probably should put the \nopagebreak before the \\.


Excellent! That worked fine, problem solved. Thank you kindly, Pieter.

Manuel


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex



More information about the macostex-archives mailing list