]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/text/preventing-long--mark-objects-to-stretch-a-measure.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / input / lsr / text / preventing-long--mark-objects-to-stretch-a-measure.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 When you put a long \markup text in a \mark object, LilyPond stretches
6 the measure to encompass the complete markup. This can be avoided by
7 overriding the 'X-extent property of the RehearsalMark object, as
8 demonstrated in this snippet. 
9 " }
10
11 \paper{ indent = 0}
12  \new PianoStaff {<<
13     {\new Staff
14         \override Score.RehearsalMark #'self-alignment-X = #left
15     R1 R1 \mark \markup {"long markup with default horizontal extent"} R1*2 }
16     \new Staff {\repeat unfold 16 {c4}}
17     >>
18 }
19 \new PianoStaff {<<
20     {\new Staff
21         \override Score.RehearsalMark #'self-alignment-X = #left
22         \override Score.RehearsalMark #'X-extent = #'(0 . 0)
23     R1 R1 \mark \markup {"long markup without horizontal extent"} R1*2 }
24     \new Staff {\repeat unfold 16 {c4}}
25     >>
26 }
27