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