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