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