lilypond-user
[Top][All Lists]
Advanced

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

Re: pageBreak problem


From: Graeme St.Clair
Subject: Re: pageBreak problem
Date: Wed, 8 Mar 2006 18:22:41 -0500

Aha! The online doc you gave me states that "piece" is necessary as well as "breakbefore"! This is not in "lilypond.pdf", or at any rate not near any reference to "breakbefore". With that hint, and the suggestion from Sec 3.7.1 about supplementary header info inside two \score's, I was able to get exactly the result I wanted. Once again, many thanks.

Rgds, G.

----- Original Message ----- From: "Mats Bengtsson" <address@hidden>
To: "Graeme St.Clair" <address@hidden>
Cc: <address@hidden>
Sent: Wednesday, March 08, 2006 2:41 PM
Subject: Re: pageBreak problem


OK! When I browse through your code a second time,
I realize that you have already pointed out the problematic
line yourself:
\score {
\context PianoStaff <<
\pageBreak % Has to be here, but bug seems to create extra empty staff

First of all, the \pageBreak command doesn't work at the top
of a score. Please read at
http://lilypond.org/doc/v2.7/Documentation/user/lilypond/Page-breaking.html#Page-breaking
to learn what to do instead.

Also, the \pageBreak command, as many other commands,
needs a Staff context to "live in", therefore LilyPond creates
one, which explains why you get an extra stave.

Third, if you only have a single \book{...} in your file, then you
can just as well remove it. LilyPond will silently add a \book{...}
around each .ly file if there isn't one. The only reason to explicitly
use \book{...} is if you want several output PDF files from one and
the same .ly file, since if you have several \book{...} blocks, then
you get one output file for each such block.

  /Mats








reply via email to

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