Revert "Fix syntax error in fret-diagrams.ly"
[lilypond/csorensen.git] / input / lsr / aligning-and-centering-instrument-names.ly
blob3593b47fdfbe8c4e87ee9e32aa994dec670c59f0
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"
5 \header {
6 lsrtags = "text, paper-and-layout, titles"
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:
14 Right-aligned instrument names: this is the default behavior
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
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.
31 doctitle = "Aligning and centering instrument names"
32 } % begin verbatim
33 \paper {
34 indent = #0
35 left-margin = #30
36 line-width = #160
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
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