lilypond-user
[Top][All Lists]
Advanced

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

Re: many short pieces - page breaks


From: Nicolas Sceaux
Subject: Re: many short pieces - page breaks
Date: Mon, 14 Aug 2006 16:29:27 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

Tom Permutt <address@hidden> 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))




reply via email to

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