• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

große \markup spacing ignorieren

Begonnen von kilgore, Samstag, 1. Mai 2010, 21:09

Vorheriges Thema - Nächstes Thema

kilgore

Ich möchte Lilypond dazu zwingen, die "normale" Abstand zwischen Systeme beizubehalten, egal wie gross mein \markup ist.

\version "2.12.3"


eins =
{ c'4 c'4 c'4 c'4-\markup { \column {
          \line { ⇡ }
          \line { \null }
          \line { ⇡ }
          \line { \null }
          \line { ⇡ }
          \line { \null }
          \line { ⇡ }
          \line { \null }
          \line { ⇡ }
        }
      }
  c'1 }

zwei =
{ c'4 c'4 c'4 c'4 c'1 }

\new StaffGroup <<
  \new Staff {
    \eins }
  \new Staff {
    \zwei }
>>   



Ratlos. Ideen?

derHindemith

Am einfachsten wäre wahrscheinlich die Höhe explizit zu bestimmen. Siehe 4.4.3 in den Notationsreferenz. Es gibt eine deutsche Übersetzung davon in den 2.13 Dokumentation.

RobUr

Andere Möglichkeit: solch ,,großem" Markup die vertikale Ausdehnung wegnehmen:

\version "2.12.3"

eins = {
c'4 c'4 c'4
\once \override TextScript #'Y-extent = #'(0 . 0) %% vertikale Ausdehnung = null
\once \override TextScript #'extra-offset = #'(0 . -1.5) %% Positionskorrektur
c'4-\markup {
\column {
\line { ⇡ }
\line { \null }
\line { ⇡ }
\line { \null }
\line { ⇡ }
\line { \null }
\line { ⇡ }
\line { \null }
\line { ⇡ }
}
}
c'1
}

zwei = { c'4 c'4 c'4 c'4 c'1 }

\new StaffGroup <<
\new Staff { \eins }
\new Staff { \zwei }
>>

Dies ändert aber noch nichts an einer fixen Zeilenposition; der Abstand zwischen Zeilen wird wie üblich berechnet, als ob kein Objekt dazwischen wäre – oder eben ein Objekt mit der Höhe ,,0".

Grüße, Robert

kilgore

Danke Rob und Hindemith!  Das Y-extent war doch das was mir gefehlt hat....


;D