This may seem very nitpicky, but how can I control the alignment of the
text in a page-ref? I'm using "000" as the placeholder, since I want
this to work with up to 3 digits of page numbers. Lilypond seems to
compute the width of the "000" then *right* align the text inside of
that space, so if the total page count is less than 3 digits, there is
a noticeable gap between the "of" and the number. The box in this
example is purely for visualization purposes and can be removed. I also
tried putting the page-ref inside of a \left-align command, but it
didn't have any effect.

%%%
\version "2.24.4"
\paper {
  oddFooterMarkup = \markup {
    \line {
      "Page"
      \fromproperty #'page:page-number-string
      "of"
      \box { \page-ref #'end "000" "?" }
    }
  }
  evenFooterMarkup = \oddFooterMarkup
}

{
  \repeat unfold 6000 { c'4 }
  \label #'end
}
%%%

Reply via email to