Table of contents: Difference between revisions
Appearance
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
A table of contents is included using <code>\markuplist \table-of-contents</code> | A table of contents is included using <code>\markuplist \table-of-contents</code>; its items are added with the <code>\tocItem</code> command. | ||
<lilypond version="2.24"> | <lilypond version="2.24" full> | ||
#(set-default-paper-size " | #(set-default-paper-size "a7" 'landscape) | ||
#(set-global-staff-size 11) | |||
\paper { | |||
print-all-headers = ##t | |||
} | |||
\book { | \book { | ||
\markuplist \table-of-contents | \markuplist \table-of-contents | ||
\pageBreak | \pageBreak | ||
\tocItem \markup { The first score } | \tocItem \markup { The first score } | ||
\score { | \score { | ||
| Line 14: | Line 20: | ||
d'1 | d'1 | ||
} | } | ||
\header { title = "First score" } | |||
} | } | ||
\pageBreak | \pageBreak | ||
\tocItem \markup { The second score } | \tocItem \markup { The second score } | ||
\score { | \score { | ||
{ e'1 } | { e'1 } | ||
\header { | \header { title = "Second score" } | ||
} | } | ||
} | } | ||
Latest revision as of 07:29, 26 December 2025
A table of contents is included using \markuplist \table-of-contents; its items are added with the \tocItem command.
\version "2.24"
#(set-default-paper-size "a7" 'landscape)
#(set-global-staff-size 11)
\paper {
print-all-headers = ##t
}
\book {
\markuplist \table-of-contents
\pageBreak
\tocItem \markup { The first score }
\score {
{
c'1 \pageBreak
\mark \default \tocItem \markup { Mark A }
d'1
}
\header { title = "First score" }
}
\pageBreak
\tocItem \markup { The second score }
\score {
{ e'1 }
\header { title = "Second score" }
}
}