]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
LSR: Update.
[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 \version "2.11.59"
4
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:
11
12 *
13     Nombres de instrumento alineados por la derecha: es el
14     comportamiento predeterminado
15   
16 *
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
21   
22
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}.
26
27 "
28   doctitlees = "Alinear y centrar los nombres de instrumento"
29
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
38
39 \paper { left-margin = 3\cm }
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 }