]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-and-centering-instrument-names.ly
7e82bc0148c16e9e01f2973989f437e1167bdb51
[lilypond.git] / Documentation / snippets / aligning-and-centering-instrument-names.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.16"
5
6 \header {
7   lsrtags = "text, paper-and-layout, titles"
8
9 %% Translation of GIT committish: 2b0dc29608d6c3f5a03ead4877ae514c647adb74
10   texidoces = "
11 La alineaciĆ³n horizontal de los nombres de instrumento se puede
12 trucar modificando la propiedad @code{Staff.InstrumentName
13 #'self-alignment-X}.  Las variables de @code{\\layout}
14 @code{indent} y @code{short-indent} definen el espacio en que se
15 alinean los nombres de instrumento antes del primer sistema y de
16 los siguientes, respectivamente.
17
18 "
19   doctitlees = "Alinear y centrar los nombres de instrumento"
20
21   texidoc = "
22 The horizontal alignment of instrument names is tweaked by changing the
23 @code{Staff.InstrumentName #'self-alignment-X} property. The
24 @code{\\layout} variables @code{indent} and @code{short-indent} define
25 the space in which the instrument names are aligned before the first
26 and the following systems, respectively.
27
28 "
29   doctitle = "Aligning and centering instrument names"
30 } % begin verbatim
31
32 \paper {
33   left-margin = 3\cm
34 }
35
36 \score {
37   \new StaffGroup <<
38     \new Staff {
39       \override Staff.InstrumentName #'self-alignment-X = #LEFT
40       \set Staff.instrumentName = \markup \left-column {
41         "Left aligned"
42         "instrument name"
43       }
44       \set Staff.shortInstrumentName = #"Left"
45       c''1
46       \break
47       c''1
48     }
49     \new Staff {
50       \override Staff.InstrumentName #'self-alignment-X = #CENTER
51       \set Staff.instrumentName = \markup \center-column {
52         Centered
53         "instrument name"
54       }
55       \set Staff.shortInstrumentName = #"Centered"
56       g'1
57       g'1
58     }
59     \new Staff {
60       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
61       \set Staff.instrumentName = \markup \right-column {
62         "Right aligned"
63         "instrument name"
64       }
65       \set Staff.shortInstrumentName = #"Right"
66       e'1
67       e'1
68     }
69   >>
70   \layout {
71     ragged-right = ##t
72     indent = 4\cm
73     short-indent = 2\cm
74   }
75 }