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