]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/lyrics-alignment.ly
6d85d9eecdf3d5f8d14b4e526e2d529e3d091728
[lilypond.git] / Documentation / snippets / lyrics-alignment.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.39"
5
6 \header {
7   lsrtags = "text, vocal-music"
8
9 %% Translation of GIT committish: 5160eccb26cee0bfd802d844233e4a8d795a1e94
10   texidoces = "
11 La alineación horizontal de la letra se puede ajustar sobreescribiendo
12 la propiedad @code{self-alignment-X} del objeto @code{LyricText}.
13 @code{#-1} es izquierda, @code{#0} es centrado y @code{#1} es derecha;
14 sin embargo, puede usar también @code{#LEFT}, @code{#CENTER} y
15 @code{#RIGHT}.
16
17 "
18   doctitlees = "Alineación de la letra"
19
20   texidoc = "
21 Horizontal alignment for lyrics cam be set by overriding the
22 @code{self-alignment-X} property of the @code{LyricText} object.
23 @code{#-1} is left, @code{#0} is center and @code{#1} is right;
24 however, you can use @code{#LEFT}, @code{#CENTER} and @code{#RIGHT} as
25 well.
26
27 "
28   doctitle = "Lyrics alignment"
29 } % begin verbatim
30
31 \layout { ragged-right = ##f }
32 \relative c'' {
33   c1
34   c1
35   c1
36 }
37 \addlyrics {
38   \once \override LyricText #'self-alignment-X = #LEFT
39   "This is left-aligned"
40   \once \override LyricText #'self-alignment-X = #CENTER
41   "This is centered"
42   \once \override LyricText #'self-alignment-X = #1
43   "This is right-aligned"
44 }
45