-------- Original Message --------
From: Cameron Hall [mailto:[email protected]]
Sent: Sunday, October 13, 2024 at 7:49 PM
To: Helge Kruse
Cc: [email protected]
Subject: Vertical re-order of text markup


That is controlled by the "outside-staff-priority" property. The
default value for text scripts is 450. Higher values are further away
from the staff. You can override it for a single markup by using the
\tweak command.

%%%
\score {
     \relative c' {
       \melisma
       \omit Score.BarLine
       c4 \tweak outside-staff-priority 451 - \markup{C\super{1} (Mein
Freund Molli)} a' - \markup{A\super{1} (ich)}
       s1
       fis4 - \markup{Fis\super{1} (meine Freundin)}
       \melismaEnd
     }
}
%%%

Thanks a lot. That does it.

I also found another solution overriding the offset of the text. It
works, but your solution is better, because it lets Lilypond select the
actual position.


\score {
  \relative c' {
    \melisma
    \omit Score.BarLine
    \override TextScript.extra-offset = #'(0 . -2.4)
    c4 - \markup{C\super{1} (Mein Freund Molli)}
    \override TextScript.extra-offset = #'(0 . 3.5)
    a' - \markup{A\super{1} (ich)}
    s1
    fis4 - \markup{Fis\super{1} (meine Freundin)}
    \melismaEnd
  }
}

Regards,
Helge

Reply via email to