Am 16.12.2013 02:24, schrieb Kieren MacMillan:
I’d like to have the score title (i.e., the whole two-line column)
automatically centered (i.e., it should be lined up exactly with the book
title, in this case), and the boxed song number (which may have two or three
digits in other songs!) “float” to the left accordingly. What’s the easiest way
to accomplish this, without having to manually tweak each song?
One way is to add something to the right too and hide it by making it white:
\version "2.17.29"
\paper {
bookTitleMarkup = \markup \fill-line { \abs-fontsize #18
\fromproperty #'header:title }
scoreTitleMarkup = \markup \center-column {
\fill-line {
{ \abs-fontsize #18 \override #'(box-padding . 0.5) \box \concat
{ "#" \fromproperty #'header:no } \hspace #0.5 }
\override #'(baseline-skip . 0) \center-column {
\abs-fontsize #18 \fromproperty #'header:title
\abs-fontsize #13 \concat { "(" \fromproperty
#'header:performers ")" }
}
{ \with-color #white \abs-fontsize #18 \override #'(box-padding .
0.5) \box \concat { "#" \fromproperty #'header:no } \hspace #0.5 }
}
}
}
\header {
no = "1"
title = "My Awesome Song"
performers = "Me and You"
}
\score { c' }
HTH
Urs
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user