]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-and-centering-instrument-names.ly
Merge remote branch 'origin' into release/unstable
[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.0"
8
9 \header {
10   lsrtags = "text, paper-and-layout, titles"
11
12 %% Translation of GIT committish: 615cbf212fdaf0b220b3330da417d0c3602494f2
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   texidoc = "
25 The horizontal alignment of instrument names is tweaked by changing the
26 @code{Staff.InstrumentName #'self-alignment-X} property. The
27 @code{\\layout} variables @code{indent} and @code{short-indent} define
28 the space in which the instrument names are aligned before the first
29 and the following systems, respectively.
30
31 "
32   doctitle = "Aligning and centering instrument names"
33 } % begin verbatim
34
35 \paper {
36   left-margin = 3\cm
37 }
38
39 \score {
40   \new StaffGroup <<
41     \new Staff {
42       \override Staff.InstrumentName #'self-alignment-X = #LEFT
43       \set Staff.instrumentName = \markup \left-column {
44         "Left aligned"
45         "instrument name"
46       }
47       \set Staff.shortInstrumentName = #"Left"
48       c''1
49       \break
50       c''1
51     }
52     \new Staff {
53       \override Staff.InstrumentName #'self-alignment-X = #CENTER
54       \set Staff.instrumentName = \markup \center-column {
55         Centered
56         "instrument name"
57       }
58       \set Staff.shortInstrumentName = #"Centered"
59       g'1
60       g'1
61     }
62     \new Staff {
63       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
64       \set Staff.instrumentName = \markup \right-column {
65         "Right aligned"
66         "instrument name"
67       }
68       \set Staff.shortInstrumentName = #"Right"
69       e'1
70       e'1
71     }
72   >>
73   \layout {
74     ragged-right = ##t
75     indent = 4\cm
76     short-indent = 2\cm
77   }
78 }