Tom Permutt <[EMAIL PROTECTED]> writes:
> I'm setting a "book" of short pieces. Three or four will fit on a page. One
> file of many scores with "piece=" in \header blocks does most of what I
> want. I would like page breaks, however, to happen between rather than
> within pieces.
>
> I could find the first bad break, put "breakbefore" in the header, and
> repeat. Or, I suppose, I could use "skip" to put \noPageBreak at every
> barline within every score. Either of these seems an awkward solution to
> what must be a common problem. Am I missing something easy?
No, there is nothing at the moment to do what you want. Until this
feature is added to LilyPond, you can use some hacks, like:
pageBreakHack =
#(define-music-function (parser location) ()
(ly:parser-parse-string (ly:clone-parser parser) "
\\score {
{
\\noPageBreak
\\overrideProperty #\"Score.NonMusicalPaperColumn\"
#'line-break-system-details
#'((Y-extent . (0 . 0)) (refpoint-Y-extent . (0 . 0))
(next-padding . 0) (next-space . 0.1))
s4 \\bar \"\"
\\pageBreak
\\overrideProperty #\"Score.NonMusicalPaperColumn\"
#'line-break-system-details
#'((Y-extent . (0 . 0)) (refpoint-Y-extent . (0 . 0))
(next-padding . 0) (next-space . 0.1))
s4 }
\\layout {
\\context {
\\Staff
\\remove Time_signature_engraver
\\remove Key_engraver
\\remove Clef_engraver
\\remove Staff_symbol_engraver
}
}
}
")
(make-music 'SequentialMusic 'void #t))
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user