1\version "2.21.2" 2 3\header { 4 texidoc = "TOC labels can be explicitly specified, 5and structured hierarchically; they appear in PDF 6bookmarks as well (the `table of contents’ panel 7in PDF viewers). PDF bookmarks are reordered so as 8to not `go back in time’." 9} 10 11#(set-default-paper-size "a8" 'landscape) 12 13\book { 14 \header { tagline = ##f } 15 \markuplist \table-of-contents 16 \pageBreak 17 18 \tocItem \markup \underline "Introduction" 19 \markup \bold \fill-line { "Hello World." } 20 \pageBreak 21 \tocItem parentI \markup "First-level I." 22 23 \score { 24 { 25 c'1 \pageBreak 26 \tocItem parentI.pIchildI \markup "Second level I. a" 27 d' 28 \mark "A" \tocItem pIchildI.pIcIgrandchildI \markup "Third level I. a, 1" 29 e' 30 \pageBreak 31 } 32 } 33 \pageBreak 34 \tocItem parentII \markup "First-level II." 35 \score { 36 << 37 \new Devnull { 38 R R \pageBreak 39 \tocItem parentII.pIIchildI \markup "The end" 40 R \bar "|." 41 } 42 %% This will appear in the TOC after the previous entry, 43 %% but before it in the PDF outline. 44 { e' \tocItem parentII.pIIchildII \markup "Before the end" s f' } 45 >> 46 } 47} 48