Thanks, Jean and Kieren
Okay. I did that and when I move the \paper (yes, my bad, I did write
\page) into the \bookpart it generates a separate PDF for each
\bookpart, which I think kind of defeats the purpose of a \bookpart.
Here is a slightly convoluted example of my input by way of example (in
reality these elements are spread over different files and included to
create the output). I can get around this with externally by combining the
PDFs, but I wonder if there is something I’m doing wrong here
—
\version "2.24"
tune-hdr = \header {
title = "Foo Bar"
composer = "Whoisit"
}
melody = \relative c' {
\clef treble
\key d \minor
\time 4/4
a2 bes4 c | d2 ees8 c d bes |
}
tune = \score {
\new Staff \melody
}
page-one = \paper {
page-count = 1
}
song-one = \bookpart {
\page-one
\tocItem \markup "Song One"
\tune-hdr
\tune
}
song-two = \bookpart {
\page-one
\tocItem \markup "Song Two"
\tune-hdr
\tune
}
\markuplist \table-of-contents
\pageBreak
\song-one
\song-two
——
Thanks again!
-mark.
On 9 Jan 2023 at 10:14:10, Jean Abou Samra <[email protected]> wrote:
> Le 08/01/2023 à 23:45, Mark Probert a écrit :
>
> Jean,
>
>
> Following on. If my understanding is correct, each \book has a single
>
> \page.
>
>
>
> Did you mean \paper?
>
>
> So if my score consists of multiple \bookparts and I adjust the \page
>
> block, that impacts all the \bookparts?
>
>
>
> Yes, it means each bookpart has the specified number of pages.
>
> \version "2.24.0"
>
> \paper {
> page-count = 2
> }
>
> \bookpart {
> \repeat unfold 20 { c'1 }
> }
>
> \bookpart {
> \repeat unfold 20 { c'1 }
> }
>
>
>
> Is there a way to force an individual \bookpart to a given number of
>
> pages?
>
>
>
> Just move \paper inside \bookpart.
>
> \version "2.24.0"
>
> \bookpart {
> \paper {
> page-count = 2
> }
> \repeat unfold 20 { c'1 }
> }
>
> \bookpart {
> \repeat unfold 20 { c'1 }
> }
>
>
> HTH,
> Jean
>
>