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

%% EXAMPLE 2

\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 c

c1 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 c

c1 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 c

c1 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 }

\pageBreak

\score { \music }

\pageBreak

%% EXAMPLE 3

\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 c

c1 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 c

c1 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 c

c1 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

\pageBreak

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 c

c1 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 c

c1 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 c

c1 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

\pageBreak

}

\score { \music }

_______________________________________________

bug-lilypond mailing list

[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond