bug-lilypond
[Top][All Lists]
Advanced

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

Re: page-break-permission = ##f doesn't work for the final manual \pageB


From: Federico Bruni
Subject: Re: page-break-permission = ##f doesn't work for the final manual \pageBreak
Date: Sun, 23 Feb 2014 22:44:04 +0100

2014-02-23 20:46 GMT+01:00 Paul Morris <address@hidden>:

> When using
>
>   \override NonMusicalPaperColumn.page-break-permission = ##f
>
> if the music doesn't easily fit on the last page (i.e. it needs to be
> vertically compressed to fit), then the final manual \pageBreak is ignored
> and an automatic page break occurs that causes the music to spill over onto
> an additional page.  See the three examples below.
>
> The docs say: "When page-break-permission is overridden to false, Lily
> will insert page breaks at explicit \pageBreak commands and nowhere else."
> http://lilypond.org/doc/v2.18/Documentation/notation/explicit-breaks
>
> -Paul
>
>
> %% EXAMPLE 1
> \version "2.18.0"
>
> \layout {
>   \override NonMusicalPaperColumn.page-break-permission = ##f
> }
>
> music = \relative f' {
>   e1 c c c c c c c c c c c c c c c c c c c c c
>   c c c c c c c c c c c c c c c c c c c c c c f
> }
>
> \score { \music }
> \score { \music }
> \score { \music }
> \score { \music }
> \pageBreak
>
> \score { \music }
> \score { \music }
> \score { \music }
> \score { \music }
> \pageBreak
>

I'm not sure if it's really a bug. On 2.16.2 the same happens.
I guess that pageBreaks needs an object afterwards, otherwise it doesn't
make sense. You can use an empty \markup to work around the problem:

\version "2.18.0"

\layout {
  \override NonMusicalPaperColumn #'page-break-permission = ##f
}

music = \relative f' {
  e1 c c c c c c c c c c c c c c c c c c c c c
  c c c c c c c c c c c c c c c c c c c c c c f
}

\score { \music }
\score { \music }
\score { \music }
\score { \music }
\pageBreak

\score { \music }
\score { \music }
\score { \music }
\score { \music }
\pageBreak

\markup \null


reply via email to

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