]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
9b4b87db7b9e6188ff576e9d8a5ba61513737369
[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   texidoces = "
8 Los nombres de instrumento se imprimen generalmente a la izquierda de
9 los pentagramas.  Para alinear los nombres de varios instrumentos
10 distintos, sitúelos dentro de un bloque @code{\\markup} y utilice una
11 de las siguientes posiblidades:
12
13 *
14     Nombres de instrumento alineados por la derecha: es el
15     comportamiento predeterminado
16   
17 *
18     Nombres de instrumento centrados: la utilización de la instrucción
19     @code{\\hcenter-in #n} sitúa los nombres de instrumento dentro de
20     un rectángulo separado, donde @code{n} es la anchura del
21     rectángulo
22   
23
24     Nombres de instrumento alineados por la izquierda: los nombres se
25     imprimen en la parte superior de un rectángulo vacío, utilizando
26     la instrucción @code{\\combine} con un objeto @code{\\hspace #n}.
27
28 "
29   doctitlees = "Alinear y centrar los nombres de instrumento"
30
31   lsrtags = "text, paper-and-layout, titles"
32   texidoc = "The horizontal alignment of instrument names is tweaked
33 by changing the @code{Staff.InstrumentName #'self-alignment-X} property.
34 The @code{\\layout} variables @code{indent} and @code{short-indent}
35 define the space in which the instrument names are aligned before the
36 first and the following systems, respectively."
37   doctitle = "Aligning and centering instrument names"
38 } % begin verbatim
39
40
41 \paper {
42   left-margin = 3\cm
43 }
44
45 \score {
46   \new StaffGroup <<
47     \new Staff {
48       \override Staff.InstrumentName #'self-alignment-X = #LEFT
49       \set Staff.instrumentName = \markup \left-column {
50         "Left aligned"
51         "instrument name"
52       }
53       \set Staff.shortInstrumentName = #"Left"
54       c''1
55       \break
56       c''1
57     }
58     \new Staff {
59       \override Staff.InstrumentName #'self-alignment-X = #CENTER
60       \set Staff.instrumentName = \markup \center-column {
61         Centered
62         "instrument name"
63       }
64       \set Staff.shortInstrumentName = #"Centered"
65       g'1
66       g'1
67     }
68     \new Staff {
69       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
70       \set Staff.instrumentName = \markup \right-column {
71         "Right aligned"
72         "instrument name"
73       }
74       \set Staff.shortInstrumentName = #"Right"
75       e'1
76       e'1
77     }
78   >>
79   \layout {
80     ragged-right = ##t
81     indent = 4\cm
82     short-indent = 2\cm
83   }
84 }