LSR: Update.
[lilypond.git] / input / lsr / page-label.ly
blobf1e6df43f86477829dedb84cbf8e1c3b4c4180c1
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 %% Note: this file works from version 2.12.0
4 \version "2.13.1"
5 \header {
6 lsrtags = "spacing"
7 texidoc = "Page labels may be placed inside music or at top-level,
8 and referred to in markups."
9 doctitle = "Page label"
10 } % begin verbatim
13 #(set-default-paper-size "a6")
15 #(define-markup-command (toc-line layout props label text)
16 (symbol? markup?)
17 (interpret-markup layout props
18 (markup #:fill-line (text #:page-ref label "8" "?"))))
20 \book {
21 \markup \huge \fill-line { \null Title Page \null }
23 \pageBreak
25 \label #'toc
26 \markup \column {
27 \large \fill-line { \null Table of contents \null }
28 \toc-line #'toc "Table of contents"
29 \toc-line #'firstScore "First Score"
30 \toc-line #'markA "Mark A"
31 \toc-line #'markB "Mark B"
32 \toc-line #'markC "Mark C"
33 \toc-line #'unknown "Unknown label"
36 \pageBreak
38 \label #'firstScore
39 \score {
40 \new Staff \relative c' {
41 c2 c
42 \mark \markup {
43 A (page \concat { \page-ref #'markA "0" "?" ) }
44 } \label #'markA
45 c2 c
46 \pageBreak
47 \mark "B" \label #'markB
48 d2 d
49 d2 d
50 \once \override Score.RehearsalMark #'break-visibility =
51 #begin-of-line-invisible
52 \mark "C" \label #'markC
54 \header { piece = "First score" }