lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Orphaned and widowed lines in \markuplines


From: David Kastrup
Subject: Re: Orphaned and widowed lines in \markuplines
Date: Tue, 10 Nov 2009 07:19:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Nicolas Sceaux <address@hidden> writes:

> Le 9 nov. 2009 à 11:10, Jiri Zurek (Prague) a écrit :
>
>>
>> It happens to my scores that when using \markuplines for long texts
>> (more
>> than a page), Lilypond leaves a first or a last line orphaned (single,
>> alone) on a page. This is normally unwanted in printed
>> literature. Is there
>> a way how to instruct Lilypond not to leave orphaned or widowed
>> single lines
>> on any page?
>
> You may consider using the ly:minimal-breaking page breaking algorithm
> for
> text sections. The default algorithm, ly:optimal-breaking, is abviously
> dedicated to scores, so it can lead to suboptimal results when dealing
> with
> text. Conversely, ly:minimal-breaking gives better results with text: it
> stacks as many lines as possible on a page before brekaing to the next
> one.

The answer does not fit the question.  The question was not about
stacking as much on a page as possible.  Quite contrary: it was about
stacking less than possible if it avoids ugly results.

-- 
David Kastrup





reply via email to

[Prev in Thread] Current Thread [Next in Thread]