]> 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 LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "text, paper-and-layout, titles"
7
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   texidoc = "
33 The horizontal alignment of instrument names is tweaked by changing the
34 @code{Staff.InstrumentName #'self-alignment-X} property. The
35 @code{\\layout} variables @code{indent} and @code{short-indent} define
36 the space in which the instrument names are aligned before the first
37 and the following systems, respectively.
38
39 "
40   doctitle = "Aligning and centering instrument names"
41 } % begin verbatim
42
43 \paper {
44   left-margin = 3\cm
45 }
46
47 \score {
48   \new StaffGroup <<
49     \new Staff {
50       \override Staff.InstrumentName #'self-alignment-X = #LEFT
51       \set Staff.instrumentName = \markup \left-column {
52         "Left aligned"
53         "instrument name"
54       }
55       \set Staff.shortInstrumentName = #"Left"
56       c''1
57       \break
58       c''1
59     }
60     \new Staff {
61       \override Staff.InstrumentName #'self-alignment-X = #CENTER
62       \set Staff.instrumentName = \markup \center-column {
63         Centered
64         "instrument name"
65       }
66       \set Staff.shortInstrumentName = #"Centered"
67       g'1
68       g'1
69     }
70     \new Staff {
71       \override Staff.InstrumentName #'self-alignment-X = #RIGHT
72       \set Staff.instrumentName = \markup \right-column {
73         "Right aligned"
74         "instrument name"
75       }
76       \set Staff.shortInstrumentName = #"Right"
77       e'1
78       e'1
79     }
80   >>
81   \layout {
82     ragged-right = ##t
83     indent = 4\cm
84     short-indent = 2\cm
85   }
86 }