]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
Split WWW target in two stages WWW-1 and WWW-2
[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.46"
4
5 \header {
6   lsrtags = "text, paper-and-layout, titles"
7
8   texidoc = "
9 Instrument names are generally printed at the left side of the staves.
10 To align the names of several different intruments, you can put them in
11 a @code{\\markup} block and use one of the following possibilites:
12
13
14     Right-aligned instrument names: this is the default behavior
15   
16
17     Center-aligned instrument names: with the @code{\\hcenter-in #n}
18 command, you
19     can place the instrument names inside a padded box (@code{n} being the
20 width
21     of the box)
22   
23
24     Left-aligned instrument names: you have to print the names on top of an
25     empty box, using the @code{\\combine} command
26     with an @code{\\hspace #n} object.
27   
28
29
30 "
31   doctitle = "Aligning and centering instrument names"
32 } % begin verbatim
33 \paper {
34   indent = #0
35   left-margin = #30
36   line-width = #160
37 }
38
39 \new StaffGroup \relative <<
40   \new Staff {
41     \set Staff.instrumentName = "Piccolo"
42     c1^"default" c \break
43     \set Staff.instrumentName = \markup { \hcenter-in #10 "Piccolo" }
44     c1^"centered" c \break
45     \set Staff.instrumentName = \markup { \combine \hspace #8 "Piccolo" }
46     c1^"left-aligned" c
47   } 
48   \new Staff {
49     \set Staff.instrumentName = "Flute"
50     c1 c \break
51     \set Staff.instrumentName = \markup { \hcenter-in #10 "Flute" }
52     c1 c \break
53     \set Staff.instrumentName = \markup { \combine \hspace #8 "Flute" }
54     c1 c
55   }
56 >>