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