Table of contents: Difference between revisions

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>. The TOC items are added with the <code>\tocItem</code> command.
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 "a6")
#(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 { piece = "Second score" }
     \header { title = "Second score" }
   }
   }
}
}