]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/instrument-name-x-align.ly
Make relative-includes configurable with a -d option.
[lilypond.git] / input / regression / instrument-name-x-align.ly
1 \header {
2
3   texidoc = "Instrument names horizontal alignment is tweaked by
4 changing the @code{Staff.Instrument #'self-alignment-X} property.  The
5 @code{\layout} variables @code{indent} and @code{short-indent} define
6 the space where the instrument names are aligned before the first and
7 the following systems, respectively."
8
9 }
10
11 \version "2.11.57"
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 \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 \column \right-align {
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 }