I'm trying a different approach¹ in creating a book.
Let me first explain what I 'd like to achieve.

Let's say I have some scores which I'd like to print either on their own and inside a book which includes them all; and I want the title to show up correctly in both cases without having to touch any single score. It seems that \bookpart is perfect because I can use an \header block for each score.

But I have two problems in the book file which includes the bookpart files:

1. page numbers in the table of contents don't work: I see a ? instead of a number

2. between the two scores a page with the main title is printed

See minimal example attached.
Can you help me?
Thanks in advance

[1] http://lists.gnu.org/archive/html/lilypond-user/2012-05/msg00057.html
(this is what I used to do)
--
Federico
\version "2.16.0"

\pointAndClickOff

\header {
  title = "Title"
}

\paper {
}

\markuplist \table-of-contents
\pageBreak

\markup { \null }
\pageBreak

\tocItem \markup "1st piece"
\include "bookpart1.ly"

\tocItem \markup "2nd piece"
\include "bookpart2.ly"
\version "2.16.0"

\bookpart {
  \score {
    \repeat unfold 20 { c1*4 \break }
    \layout {
      indent = #0
      %system-count = #
    }
  }
  \header {
    title= "1st Piece"
  }
}
\version "2.16.0"

\bookpart {
  \score {
    \repeat unfold 20 { d1*4 \break }
    \layout {
      indent = #0
      %system-count = #
    }
  }
  \header {
    title= "2nd Piece"
  }
}
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to