X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Ftable-of-contents.ly;fp=Documentation%2Fsnippets%2Ftable-of-contents.ly;h=60292e665a6a09ae8ef6facad51b61ba3dd933b2;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/snippets/table-of-contents.ly b/Documentation/snippets/table-of-contents.ly new file mode 100644 index 0000000000..60292e665a --- /dev/null +++ b/Documentation/snippets/table-of-contents.ly @@ -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" } + } +}