| [ << Spacing issues ] | [Top][Contents][Index][ ? ] | [ Changing defaults >> ] | ||
| [ < Optimal page turning ] | [ Up : Breaks ] | [ Vertical spacing > ] | ||
4.3.3 Explicit breaks
There are cases when manual \break or \pageBreak
commands are ignored by LilyPond. There are two commands to
override this behavior:
\override NonMusicalPaperColumn.line-break-permission = ##f \override NonMusicalPaperColumn.page-break-permission = ##f
If line-break-permission is set to ##f, all line
breaks must be explicitly inserted with a \break command.
Likewise, if page-break-permission is set to ##f,
all page breaks must be explicitly inserted with a
\pageBreak command.
\paper {
indent = #0
ragged-right = ##t
ragged-bottom = ##t
}
music = \relative c'' { c8 c c c }
\score {
\new Staff {
\repeat unfold 2 { \music } \break
\repeat unfold 4 { \music } \break
\repeat unfold 6 { \music } \break
\repeat unfold 8 { \music } \pageBreak
\repeat unfold 8 { \music } \break
\repeat unfold 6 { \music } \break
\repeat unfold 4 { \music } \break
\repeat unfold 2 { \music }
}
\layout {
\context {
\Score
\override NonMusicalPaperColumn.line-break-permission = ##f
\override NonMusicalPaperColumn.page-break-permission = ##f
}
}
}
Selected Snippets
Using an extra voice for breaks
Often it is easier to manage line and page-breaking information by
keeping it separate from the music by introducing an extra voice
containing only skips along with the \break, pageBreak
and other layout information.
This pattern becomes especially helpful when overriding
line-break-system-details and the other useful but long
properties of NonMusicalPaperColumnGrob.
music = \relative c'' { c4 c c c }
\score {
\new Staff <<
\new Voice {
s1 * 2 \break
s1 * 3 \break
s1 * 6 \break
s1 * 5 \break
}
\new Voice {
\repeat unfold 2 { \music }
\repeat unfold 3 { \music }
\repeat unfold 6 { \music }
\repeat unfold 5 { \music }
}
>>
}
See also
Notation Reference: Vertical spacing.
Snippets: Spacing.
| [ << Spacing issues ] | [Top][Contents][Index][ ? ] | [ Changing defaults >> ] | ||
| [ < Optimal page turning ] | [ Up : Breaks ] | [ Vertical spacing > ] | ||
Andere talen: deutsch, español, français, italiano, 日本語.
About automatic language selection.