lilypond-user
[Top][All Lists]
Advanced

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

Re: Using only manual page breaks in a large file with many short scores


From: Federico Bruni
Subject: Re: Using only manual page breaks in a large file with many short scores
Date: Sun, 23 Feb 2014 18:10:14 +0100

2014-02-23 18:00 GMT+01:00 Paul Morris <address@hidden>:
I have a question about preventing automatic page breaks and only using manual page breaks. I'm working on a large file (72 pages) that has 1-3 separate fiddle tunes per page.  Each tune is in a separate file that I include in the main file like this:

% page 1
\include "TuneA.ly"
\include "TuneB.ly"
\pageBreak

% page 2
\include "TuneC.ly"
\include "TuneD.ly"
\include "TuneE.ly"
\pageBreak

Each tune file has its own \score block that contains the music (stored in variables) and the header info for each tune.

I only want page breaks where I manually put them in the main file, but LilyPond occasionally puts them in the middle of a tune when the vertical spacing gets tight on a given page.

I tried putting each page in a \bookpart[1] or \book block, but this doesn't work because of the variables in each tune file which apparently can't appear inside of these blocks.  For example, this won't work:

\bookpart {
  melodyA = { a b c d }
  \score { \new Staff \melodyA }
  \score { \new Staff { e f g } }
}

IMO \bookpart is the best choice for your use  case.
What prevents you from moving melodyA out of the \bookpart block?


reply via email to

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