]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
7db41e52f54a53e1b106a3e29adbda967d23bac5
[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.11.57"
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 Instrument names are generally printed to the left of the staves. To
34 align the names of several different intruments, put them in a
35 @code{\\markup} block and use one of the following possibilites:
36
37
38     Right-aligned instrument names: this is the default behavior
39   
40
41     Center-aligned instrument names: using the @code{\\hcenter-in #n}
42 command
43     places the instrument names inside a padded box, with @code{n} being
44 the width
45     of the box
46   
47
48     Left-aligned instrument names: the names are printed on top of an
49     empty box, using the @code{\\combine} command
50     with an @code{\\hspace #n} object.
51   
52
53
54 "
55   doctitle = "Aligning and centering instrument names"
56 } % begin verbatim
57 \paper {
58   indent = #0
59   left-margin = #30
60   line-width = #160
61 }
62
63 \new StaffGroup \relative c' <<
64   \new Staff {
65     \set Staff.instrumentName = #"Piccolo"
66     c1^"default" | c \break
67     \set Staff.instrumentName = \markup { \hcenter-in #10 Piccolo }
68     c1^"centered" | c \break
69     \set Staff.instrumentName = \markup { \combine \hspace #8 Piccolo }
70     c1^"left-aligned" | c
71   } 
72   \new Staff {
73     \set Staff.instrumentName = #"Flute"
74     c1 | c \break
75     \set Staff.instrumentName = \markup { \hcenter-in #10 Flute }
76     c1 | c \break
77     \set Staff.instrumentName = \markup { \combine \hspace #8 Flute }
78     c1 | c
79   }
80 >>