]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-and-centering-instrument-names.ly
3706adfbb2280e6a99317e4f65ba2f51d6019cd4
[lilypond.git] / Documentation / snippets / aligning-and-centering-instrument-names.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.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.14.2"
8
9 \header {
10   lsrtags = "paper-and-layout, text, titles"
11
12 %% Translation of GIT committish: b482c3e5b56c3841a88d957e0ca12964bd3e64fa
13   texidoces = "
14 La alineación horizontal de los nombres de instrumento se puede
15 trucar modificando la propiedad @code{Staff.InstrumentName
16 #'self-alignment-X}.  Las variables de @code{\\layout}
17 @code{indent} y @code{short-indent} definen el espacio en que se
18 alinean los nombres de instrumento antes del primer sistema y de
19 los siguientes, respectivamente.
20
21 "
22   doctitlees = "Alinear y centrar los nombres de instrumento"
23
24 %% Translation of GIT committish: 85394d425536d267ed0cb71d17023849f1611180
25   texidocfr = "
26 L'alignement horizontal des noms d'instrument se gère à l'aide de la
27 propriété @code{Staff.InstrumentName #'self-alignment-X}.  Les variables
28 @code{indent} et @code{short-indent}, attachées au bloc @code{\\layout},
29 déterminent l'espace alloué à l'alignement des noms d'instrument,
30 respectivement dans leurs formes développée et abrégée.
31
32 "
33   doctitlefr = "Alignement des noms d'instrument"
34
35   texidoc = "
36 The horizontal alignment of instrument names is tweaked by changing the
37 @code{Staff.InstrumentName #'self-alignment-X} property. The
38 @code{\\layout} variables @code{indent} and @code{short-indent} define
39 the space in which the instrument names are aligned before the first
40 and the following systems, respectively.
41
42 "
43   doctitle = "Aligning and centering instrument names"
44 } % begin verbatim
45
46
47 \paper {
48   left-margin = 3\cm
49 }
50
51 \score {
52   \new StaffGroup <<
53     \new Staff {
54       \override Staff.InstrumentName #'self-alignment-X = #LEFT
55       \set Staff.instrumentName = \markup \left-column {
56         "Left aligned"
57         "instrument name"
58       }
59       \set Staff.shortInstrumentName = #"Left"
60       c''1
61       \break
62       c''1
63     }
64     \new Staff {
65       \override Staff.InstrumentName #'self-alignment-X = #CENTER
66       \set Staff.instrumentName = \markup \center-column {
67         Centered
68         "instrument name"
69       }
70       \set Staff.shortInstrumentName = #"Centered"
71       g'1
72       g'1
73     }
74     \new Staff {
75       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
76       \set Staff.instrumentName = \markup \right-column {
77         "Right aligned"
78         "instrument name"
79       }
80       \set Staff.shortInstrumentName = #"Right"
81       e'1
82       e'1
83     }
84   >>
85   \layout {
86     ragged-right = ##t
87     indent = 4\cm
88     short-indent = 2\cm
89   }
90 }