LSR/301

< LSR
Zur Navigation springen Zur Suche springen
PD Der Inhalt dieser Seite wurde aus dem LilyPond Snippet Repository übernommen und steht unter folgender Lizenz: CC0.
See Public Domain Help Pages for more info.
PD
Preventing long \mark objects to stretch a measure

LSR Snippet Nr. 301

Beschreibung

When you put a long \markup text in a \mark object, LilyPond stretches the measure to encompass the complete markup. This can be avoided by overriding the 'X-extent property of the RehearsalMark object, as demonstrated in this snippet.
auto

Lilypond-Code

%% http://lsr.di.unimi.it/LSR/Item?id=301
%% see also http://www.lilypond.org/doc/v2.18/Documentation/notation/aligning-objects

\paper{ 
  indent = 0
}

\new PianoStaff <<
  \new Staff {
    \override Score.RehearsalMark.self-alignment-X = #left
    R1 R1 
    \mark \markup { "long markup with default horizontal extent" } 
    R1*2 
  }
  \new Staff {
    \repeat unfold 16 {
      \clef F
      c4
    }		
  }
>>

\new PianoStaff <<
  \new Staff {
    \override Score.RehearsalMark.self-alignment-X = #left
    R1 R1 
    \mark \markup { "long markup with default horizontal extent" } 
    \override Score.RehearsalMark.X-extent = #'(0 . 0)
    R1*2 
  }
  \new Staff {
    \repeat unfold 16 {
      \clef F
      c4
    }		
  }
>>

Unterseiten