----- Original Message -----
From: "Gregory Heytings" <g...@sdf.org>
To: <lilypond-user@gnu.org>
Sent: Sunday, May 19, 2013 2:11 AM
Subject: Left align first word of lyrics
Hi list,
Is it possible to automatically left align the first word of multiple line
lyrics ? By default the lyrics are all centered under the note, which is
okay in most situations, but perhaps not optimal for the first word of a
staff. For example, the words "Ccc", "Cc" and "C" are centered under the
c note with the following code:
\score {
\new Staff <<
\new Voice = A { \relative c' { c d e f } }
\new Lyrics \lyricsto A { Ccc ddd eee fff }
\new Lyrics \lyricsto A { Cc dd ee ff }
\new Lyrics \lyricsto A { C d e f }
>>
}
I know that it is possible to move a particular word by hand with "\once
\override LyricText #'self-alignment-X = #...". This solution is however
not only painful to type in, but its result is also most often only
approximately correct.
Many thanks in advance,
Gregory
l=\once \override LyricText #'self-alignment-X = #-1
\score {
\new Staff <<
\new Voice = A { \relative c' { c d e f } }
\new Lyrics \lyricsto A { \l Ccc ddd eee fff }
\new Lyrics \lyricsto A { \l Cc dd ee ff }
\new Lyrics \lyricsto A { \l C d e f }
>>
}
Avoids the need for typing much, and seems to left-align accurately
according to my output.
--
Phil Holmes
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user