lilypond-user
[Top][All Lists]

## Re: Avoid page break in the middle of score

 From: Sven Axelsson Subject: Re: Avoid page break in the middle of score Date: Sat, 3 Nov 2018 13:38:17 +0000

On Sat, 3 Nov 2018 at 13:15, Thomas Morley <address@hidden> wrote:
Am Sa., 3. Nov. 2018 um 13:16 Uhr schrieb Sven Axelsson
>
> I want to auto generate a collection of short tunes by \include-ing the existing files. If there is room for it, I want to put several tunes on the same page, but I only want page breaks between tunes, never in the middle of a tune. We can assume that no tune takes up more than one page.
>
> I can of course go through the file and put in \pageBreak where needed, but is there some way to do this automatically?
>
> --
> Sven Axelsson

Try to put at toplevel of your file.

\layout {
\context {
\Score
\override NonMusicalPaperColumn.page-break-permission = ##f
}
}

Does it help?

It does indeed. Thank you for that, I knew this was simple to do but for a casual user, finding the correct tweak is sometimes not so easy.

--
Sven Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.