]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/lyrics-alignment.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / lyrics-alignment.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "really-simple, text, vocal-music"
11
12   texidoc = "
13 Horizontal alignment for lyrics can be set by overriding the
14 @code{self-alignment-X} property of the @code{LyricText} object.
15 @code{#-1} is left, @code{#0} is center and @code{#1} is right;
16 however, you can use @code{#LEFT}, @code{#CENTER} and @code{#RIGHT} as
17 well.
18
19 "
20   doctitle = "Lyrics alignment"
21 } % begin verbatim
22
23 \layout { ragged-right = ##f }
24 \relative c'' {
25   c1
26   c1
27   c1
28 }
29 \addlyrics {
30   \once \override LyricText.self-alignment-X = #LEFT
31   "This is left-aligned"
32   \once \override LyricText.self-alignment-X = #CENTER
33   "This is centered"
34   \once \override LyricText.self-alignment-X = #1
35   "This is right-aligned"
36 }