Jump to content

Page label: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Page labels may be placed inside music or at top-level, and referred to in markups.
Page labels may be placed inside music or at top-level, and referred to in markups.


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
#(set-default-paper-size "a7" 'landscape)
#(set-global-staff-size 11)
 
\label license
\label license
\markup "This snippet is available under the Creative Commons
\markup \fill-line {
Public Domain Dedication license."
  \center-column {
    "This snippet is available"
    "under the Creative Commons"
    "Public Domain Dedication license." } }


{
{
   \repeat volta 2 {
   \repeat volta 2 {
     \label startRepeat
     \label startRepeat
     \repeat unfold 20 { c'2 2 }
     \repeat unfold 22 { c'2 2 }
     \pageBreak
     \pageBreak
     2 2
     \repeat unfold 16 { c'2 2 }
   }
   }
   \textEndMark \markup {
   \textEndMark \markup {
Line 20: Line 26:
}
}


\markup {
\markup \fill-line {
   See page \page-ref #'license "0" "?" for
   \line {
  licensing information.
    See page \page-ref #'license "0" "?" for
}
    licensing information. } }
</lilypond>
</lilypond>


[[Category:Spacing]]
[[Category:Spacing]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 12:29, 30 December 2025

Page labels may be placed inside music or at top-level, and referred to in markups.

\version "2.24"

#(set-default-paper-size "a7" 'landscape)
#(set-global-staff-size 11)

\label license
\markup \fill-line {
  \center-column {
    "This snippet is available"
    "under the Creative Commons"
    "Public Domain Dedication license." } }

{
  \repeat volta 2 {
    \label startRepeat
    \repeat unfold 22 { c'2 2 }
    \pageBreak
    \repeat unfold 16 { c'2 2 }
  }
  \textEndMark \markup {
    \with-link #'startRepeat \line {
      To page \page-ref #'startRepeat "0" "?"
    }
  }
}

\markup \fill-line {
  \line {
    See page \page-ref #'license "0" "?" for
    licensing information. } }