]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
Merge branch 'master' into lilypond/translation
[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.48"
4
5 \header {
6   lsrtags = "text, paper-and-layout, titles"
7
8   texidoc = "
9 Instrument names are generally printed to the left of the staves. To
10 align the names of several different intruments, put them in a
11 @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: using the @code{\\hcenter-in #n}
18 command
19     places the instrument names inside a padded box, with @code{n} being
20 the width
21     of the box
22   
23
24     Left-aligned instrument names: the names are printed 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 c' <<
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 >>