]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/aligning-and-centering-instrument-names.ly
Doc: run makelsr locally
[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 = "text, paper-and-layout, 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   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
36 \paper {
37   left-margin = 3\cm
38 }
39
40 \score {
41   \new StaffGroup <<
42     \new Staff {
43       \override Staff.InstrumentName #'self-alignment-X = #LEFT
44       \set Staff.instrumentName = \markup \left-column {
45         "Left aligned"
46         "instrument name"
47       }
48       \set Staff.shortInstrumentName = #"Left"
49       c''1
50       \break
51       c''1
52     }
53     \new Staff {
54       \override Staff.InstrumentName #'self-alignment-X = #CENTER
55       \set Staff.instrumentName = \markup \center-column {
56         Centered
57         "instrument name"
58       }
59       \set Staff.shortInstrumentName = #"Centered"
60       g'1
61       g'1
62     }
63     \new Staff {
64       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
65       \set Staff.instrumentName = \markup \right-column {
66         "Right aligned"
67         "instrument name"
68       }
69       \set Staff.shortInstrumentName = #"Right"
70       e'1
71       e'1
72     }
73   >>
74   \layout {
75     ragged-right = ##t
76     indent = 4\cm
77     short-indent = 2\cm
78   }
79 }