]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/table-of-contents.ly
Update snippets from today's LSR with changed makelsr.py
[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.40"
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
22 #(set-default-paper-size "a6")
23
24 \book {
25   \markuplist \table-of-contents
26   \pageBreak
27   \tocItem \markup { The first score }
28   \score {
29     {
30       c'1 \pageBreak
31       \mark "A" \tocItem \markup { Mark A }
32       d'1
33     }
34   }
35   \pageBreak
36   \tocItem \markup { The second score }
37   \score {
38     { e'1 }
39     \header { piece = "Second score" }
40   }
41 }