5 texidoc = "If specified, text marks may be aligned with notation
6 objects other than bar lines. These objects include @code{ambitus},
7 @code{breathing-sign}, @code{clef}, @code{custos}, @code{staff-bar},
8 @code{left-edge}, @code{key-cancellation}, @code{key-signature}, and
11 In such cases, text marks will be horizontally centered above the
12 object. However this can be changed, as demonstrated on the second
13 line of this example (in a score with multiple staves, this setting
14 should be done for all the staves)."
15 doctitle = "Aligning marks with various notation objects"
21 % the RehearsalMark will be centered above the Clef
22 \override Score.RehearsalMark #'break-align-symbols = #'(clef)
28 % the RehearsalMark will be centered above the TimeSignature
29 \override Score.RehearsalMark #'break-align-symbols = #'(time-signature)
36 % the RehearsalMark will be centered above the KeySignature
37 \override Score.RehearsalMark #'break-align-symbols = #'(key-signature)
47 % the RehearsalMark will be aligned with the left edge of the KeySignature
48 \once \override Score.KeySignature #'break-align-anchor-alignment = #LEFT
53 % the RehearsalMark will be aligned with the right edge of the KeySignature
54 \once \override Score.KeySignature #'break-align-anchor-alignment = #RIGHT
59 % the RehearsalMark will be aligned with the left edge of the KeySignature
60 % and then shifted right by one unit.
61 \once \override Score.KeySignature #'break-align-anchor = #1