]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/table-of-contents.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / Documentation / snippets / table-of-contents.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.12.2"
5
6 \header {
7   lsrtags = "paper-and-layout"
8
9   texidoc = "
10 A table of contents is included using @code{\\markuplines
11 \\table-of-contents}.  The TOC items are added with the
12 @code{\\tocItem} command.
13
14 "
15   doctitle = "Table of contents"
16 } % begin verbatim
17
18 #(set-default-paper-size "a6")
19
20 \book {
21   \markuplines \table-of-contents
22   \pageBreak
23   \tocItem \markup { The first score }
24   \score {
25     {
26       c'1 \pageBreak
27       \mark "A" \tocItem \markup { Mark A }
28       d'1
29     }
30   }
31   \pageBreak
32   \tocItem \markup { The second score }
33   \score {
34     { e'1 }
35     \header { piece = "Second score" }
36   }
37 }