]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
MusicXML: src-dir rather than srcdir.
[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.64"
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
40 \paper {
41   left-margin = 3\cm
42 }
43
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"
51       }
52       \set Staff.shortInstrumentName = #"Left"
53       c''1
54       \break
55       c''1
56     }
57     \new Staff {
58       \override Staff.InstrumentName #'self-alignment-X = #CENTER
59       \set Staff.instrumentName = \markup \center-column {
60         Centered
61         "instrument name"
62       }
63       \set Staff.shortInstrumentName = #"Centered"
64       g'1
65       g'1
66     }
67     \new Staff {
68       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
69       \set Staff.instrumentName = \markup \right-column {
70         "Right aligned"
71         "instrument name"
72       }
73       \set Staff.shortInstrumentName = #"Right"
74       e'1
75       e'1
76     }
77   >>
78   \layout {
79     ragged-right = ##t
80     indent = 4\cm
81     short-indent = 2\cm
82   }
83 }