Table of contents
Appearance
A table of contents is included using \markuplist \table-of-contents. The TOC items are added with the \tocItem command.
\version "2.24.0"
#(set-default-paper-size "a6")
\book {
\markuplist \table-of-contents
\pageBreak
\tocItem \markup { The first score }
\score {
{
c'1 \pageBreak
\mark \default \tocItem \markup { Mark A }
d'1
}
}
\pageBreak
\tocItem \markup { The second score }
\score {
{ e'1 }
\header { piece = "Second score" }
}
}