]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/table-of-contents.ly
resolve merge
[lilypond.git] / Documentation / snippets / table-of-contents.ly
diff --git a/Documentation/snippets/table-of-contents.ly b/Documentation/snippets/table-of-contents.ly
new file mode 100644 (file)
index 0000000..60292e6
--- /dev/null
@@ -0,0 +1,40 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.14.0"
+
+\header {
+  lsrtags = "paper-and-layout"
+
+  texidoc = "
+A table of contents is included using @code{\\markuplines
+\\table-of-contents}.  The TOC items are added with the
+@code{\\tocItem} command.
+
+"
+  doctitle = "Table of contents"
+} % begin verbatim
+
+#(set-default-paper-size "a6")
+
+\book {
+  \markuplines \table-of-contents
+  \pageBreak
+  \tocItem \markup { The first score }
+  \score {
+    {
+      c'1 \pageBreak
+      \mark "A" \tocItem \markup { Mark A }
+      d'1
+    }
+  }
+  \pageBreak
+  \tocItem \markup { The second score }
+  \score {
+    { e'1 }
+    \header { piece = "Second score" }
+  }
+}