]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/table-of-contents.ly
Run update-with-convert-ly
[lilypond.git] / Documentation / snippets / table-of-contents.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.15.17"
8
9 \header {
10   lsrtags = "paper-and-layout"
11
12   texidoc = "
13 A table of contents is included using @code{\\markuplist
14 \\table-of-contents}.  The TOC items are added with the
15 @code{\\tocItem} command.
16
17 "
18   doctitle = "Table of contents"
19 } % begin verbatim
20
21 #(set-default-paper-size "a6")
22
23 \book {
24   \markuplist \table-of-contents
25   \pageBreak
26   \tocItem \markup { The first score }
27   \score {
28     {
29       c'1 \pageBreak
30       \mark "A" \tocItem \markup { Mark A }
31       d'1
32     }
33   }
34   \pageBreak
35   \tocItem \markup { The second score }
36   \score {
37     { e'1 }
38     \header { piece = "Second score" }
39   }
40 }