lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: centering title and THEN adding something to the left of it


From: Jan-Peter Voigt
Subject: Re: centering title and THEN adding something to the left of it
Date: Mon, 16 Dec 2013 12:01:46 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hi Kieren,

this is how I might do it:

use combine to place the number "above" the title line, so it doesn't
disturb its centering.

%%%
\version "2.17.29"

\paper {
  bookTitleMarkup = \markup \fill-line { \abs-fontsize #18 \fromproperty
#'header:title }
  scoreTitleMarkup = \markup \center-column {
    \combine
    \fill-line {
      \override #'(baseline-skip . 0) \center-column {
        \abs-fontsize #18 \fromproperty #'header:title
        \abs-fontsize #13 \concat { "(" \fromproperty
#'header:performers ")" }
      }
    }
    \general-align #X #LEFT \abs-fontsize #18 \override #'(box-padding .
0.5) \box \concat { "#" \fromproperty #'header:no }
  }
}

\header {
  no = "123"
  title = "My Awesome Song"
  performers = "Me and You"
}

\score { c' }
%%%

If the title is to long, it will collide with the number! The solution
with the hspace element on the right might be done with a special
markup-command ... but now its time for lunch, children and so on ;)

HTH
Jan-Peter

Am 16.12.2013 11:25, schrieb Kieren MacMillan:
> Hi all,
> 
> Thanks for the help… until someone comes up with a truly “automated” method, 
> I’m simply going to hand-code the extra spacing “strut", e.g.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]