1\header {
2
3  texidoc = "Instrument names horizontal alignment is tweaked by
4changing the @code{Staff.InstrumentName.self-alignment-X} property.  The
5@code{\\layout} variables @code{indent} and @code{short-indent} define
6the space where the instrument names are aligned before the first and
7the following systems, respectively."
8
9}
10
11\version "2.17.6"
12\paper { left-margin = 3\cm }
13\score {
14  \new StaffGroup <<
15    \new Staff {
16      \override Staff.InstrumentName.self-alignment-X = #LEFT
17      \set Staff . instrumentName = \markup \left-column {
18	"Left aligned" "instrument name"
19      }
20      \set Staff . shortInstrumentName = "Left"
21      c''1 \break c''
22    }
23    \new Staff {
24      \override Staff.InstrumentName.self-alignment-X = #CENTER
25      \set Staff . instrumentName = \markup \center-column {
26	"Centered" "instrument name"
27      }
28      \set Staff . shortInstrumentName = "Centered"
29      g'1 g'
30    }
31    \new Staff {
32      \override Staff.InstrumentName.self-alignment-X = #RIGHT
33      \set Staff . instrumentName = \markup \right-column {
34	"Right aligned" "instrument name"
35      }
36      \set Staff . shortInstrumentName = "Right"
37      e' \break e'
38    }
39  >>
40  \layout {
41    ragged-right = ##t
42    indent = 4\cm
43    short-indent = 2\cm
44  }
45}
46