Lyrics alignment: Difference between revisions
Appearance
Import snippet from LSR |
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
||
| Line 1: | Line 1: | ||
Horizontal alignment for lyrics can be set by overriding the <code>self-alignment-X</code> property of the <code>LyricText</code> object. <code>-1</code> is left, <code>0</code> is center, and <code>1</code> is right; however, you can use <code>#LEFT</code>, <code>#CENTER</code> and <code>#RIGHT</code> as well. | Horizontal alignment for lyrics can be set by overriding the <code>self-alignment-X</code> property of the <code>LyricText</code> object. <code>-1</code> is left, <code>0</code> is center, and <code>1</code> is right; however, you can use <code>#LEFT</code>, <code>#CENTER</code> and <code>#RIGHT</code> as well. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\layout { ragged-right = ##f } | \layout { ragged-right = ##f } | ||
Revision as of 18:54, 16 November 2025
Horizontal alignment for lyrics can be set by overriding the self-alignment-X property of the LyricText object. -1 is left, 0 is center, and 1 is right; however, you can use #LEFT, #CENTER and #RIGHT as well.
\version "2.24"
\layout { ragged-right = ##f }
\relative c'' {
c1
c1
c1
}
\addlyrics {
\once \override LyricText.self-alignment-X = #LEFT
"This is left-aligned"
\once \override LyricText.self-alignment-X = #CENTER
"This is centered"
\once \override LyricText.self-alignment-X = 1
"This is right-aligned"
}