4 texidoc = "Page labels may be placed inside music or at top-level,
5 and referred to in markups."
6 doctitle = "Page label"
9 #(set-default-paper-size "a6")
11 #(define-markup-command (toc-line layout props label text) (symbol? markup?)
12 (interpret-markup layout props
13 (markup #:fill-line (text #:page-ref label "8" "?"))))
16 \markup \huge \fill-line { \null Title Page \null }
22 \large \fill-line { \null Table of contents \null }
23 \toc-line #'toc "Table of contents"
24 \toc-line #'firstScore "First Score"
25 \toc-line #'markA "Mark A"
26 \toc-line #'markB "Mark B"
27 \toc-line #'markC "Mark C"
28 \toc-line #'unknown "Unknown label"
37 \mark \markup { A (page \concat { \page-ref #'markA "0" "?" ) } } \label #'markA
40 \mark "B" \label #'markB
43 \once \override Score.RehearsalMark #'break-visibility = #begin-of-line-invisible
44 \mark "C" \label #'markC
46 \header { piece = "First score" }