lilypond-user
[Top][All Lists]
Advanced

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

Re: page break hack


From: Sven Axelsson
Subject: Re: page break hack
Date: Mon, 10 Oct 2005 16:02:46 +0200

On 10/10/05, Han-Wen Nienhuys <address@hidden> wrote:
Sven Axelsson wrote:
> Now I am trying to find the correct properties to tweak to ge the
> inserted score from the original code to take up zero vertical space,
> but I haven't gotten it right yet. Any hints?

have a look at the new spacing features in 2.7.12 -
input/regression/page-spacing.ly ; you're looking for Y-extent, I'd guess.

No, that does no good. I can set Y-extent, next-space, and next-padding to zero as much as I like, but the score still takes up space. I really don't get this - why isn't there a *real* \pageBreakHere function so we don't have to mess around like this?

In most cases forced page breaks between scores are used when assembling a book from many smaller score files. Since the book layout and included scores may change, and the same scores may be used in different books, it is a bad idea to change anything in the included files.

Which either forces us to use something like \header {breakbefore = \doBreakBefore} in all scores and then do \doBreakBefore = ##t \include "score2" \doBreakBefore = ##f \include "score3" ... or else to try something like

pageBreakHack = #(def-music-function (parser location) ()
                   (ly:parser-parse-string (ly:clone-parser parser) "
\\score {
  { \\overrideProperty
    #\"Score.NonMusicalPaperColumn\ "
    #'line-break-system-details
    #'((Y-extent . (0 . 0)) (next-space . 0) (next-padding . 0))
  s4 }
  \\header { breakbefore = ##t title = \" \" }
  \\layout{
    \\context {
      \\Staff
      \\remove Time_signature_engraver
      \\remove Key_engraver
      \\remove Clef_engraver
      \\remove Staff_symbol_engraver
    }
  }
}
")
                   (make-music 'SequentialMusic))

which still doesn't work right.

--
Sven Axelsson
reply via email to

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