Update .ly files.
[lilypond.git] / input / lsr / aligning-and-centering-instrument-names.ly
blob0a67d32d7c975732736ce1ef892b3affb106b103
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.12.0"
5 \header {
6 texidoces = "
7 Los nombres de instrumento se imprimen generalmente a la izquierda de
8 los pentagramas. Para alinear los nombres de varios instrumentos
9 distintos, sitúelos dentro de un bloque @code{\\markup} y utilice una
10 de las siguientes posiblidades:
13 Nombres de instrumento alineados por la derecha: es el
14 comportamiento predeterminado
17 Nombres de instrumento centrados: la utilización de la instrucción
18 @code{\\hcenter-in #n} sitúa los nombres de instrumento dentro de
19 un rectángulo separado, donde @code{n} es la anchura del
20 rectángulo
23 Nombres de instrumento alineados por la izquierda: los nombres se
24 imprimen en la parte superior de un rectángulo vacío, utilizando
25 la instrucción @code{\\combine} con un objeto @code{\\hspace #n}.
28 doctitlees = "Alinear y centrar los nombres de instrumento"
30 lsrtags = "text, paper-and-layout, titles"
31 texidoc = "The horizontal alignment of instrument names is tweaked
32 by changing the @code{Staff.InstrumentName #'self-alignment-X} property.
33 The @code{\\layout} variables @code{indent} and @code{short-indent}
34 define the space in which the instrument names are aligned before the
35 first and the following systems, respectively."
36 doctitle = "Aligning and centering instrument names"
37 } % begin verbatim
40 \paper {
41 left-margin = 3\cm
44 \score {
45 \new StaffGroup <<
46 \new Staff {
47 \override Staff.InstrumentName #'self-alignment-X = #LEFT
48 \set Staff.instrumentName = \markup \left-column {
49 "Left aligned"
50 "instrument name"
52 \set Staff.shortInstrumentName = #"Left"
53 c''1
54 \break
55 c''1
57 \new Staff {
58 \override Staff.InstrumentName #'self-alignment-X = #CENTER
59 \set Staff.instrumentName = \markup \center-column {
60 Centered
61 "instrument name"
63 \set Staff.shortInstrumentName = #"Centered"
64 g'1
65 g'1
67 \new Staff {
68 \override Staff.InstrumentName #'self-alignment-X = #RIGHT
69 \set Staff.instrumentName = \markup \right-column {
70 "Right aligned"
71 "instrument name"
73 \set Staff.shortInstrumentName = #"Right"
74 e'1
75 e'1
78 \layout {
79 ragged-right = ##t
80 indent = 4\cm
81 short-indent = 2\cm