]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
fd60ca9c1439014505ff165310c33b446f54b281
[lilypond.git] / input / lsr / aligning-and-centering-instrument-names.ly
1 %% Do not edit this file; it is auto-generated from LSR!
2 %% Tags: text
3 \version "2.11.35"
4
5 \header { texidoc = "
6 Instrument names are generally printed at the left side of the staves.
7 To align the names of several different intruments, you can put them in
8 a \\markup block and use one of the following possibilites:
9
10
11
12     Right-aligned instrument names: this is LilyPond's default behavior
13   
14
15     Center-aligned instrument names: with the \\hcenter-in #n syntax, you
16     can place the instrument names inside a padded box (n being the width
17     of the box)
18   
19
20     Left-aligned instrument names: you have to print the names on top of an
21     empty box, using the \\combine command
22     with a \\hspace #n object.
23   
24
25 " }
26
27 \paper{ 
28   indent = #0 
29   left-margin = #30
30   line-width = #160
31 }
32
33 \new StaffGroup \relative
34 <<
35   \new Staff {
36     \set Staff.instrumentName = "blabla"
37     c1^"default" c1 \break 
38     \set Staff.instrumentName = \markup { \hcenter-in #10 "blabla" }
39     c1^"centered" c1 \break 
40     \set Staff.instrumentName = \markup {\combine \hspace #8 "blabla" }
41     c1^"left-aligned" c1 
42     
43   } 
44   \new Staff {
45     \set Staff.instrumentName = "blo"
46     c1 c1 \break 
47     \set Staff.instrumentName = \markup { \hcenter-in #10 "blo" }
48     c1 c1 \break 
49     \set Staff.instrumentName = \markup {\combine \hspace #8 "blo" }
50     c1 c1 
51   } 
52   
53 >>