Please ignore previous mail - forgot to add the scores! I'm trying to align dynamics with markup text in a Dynamics staff and have found several issues:
1. Just inserting the text by attaching it to a silent note using "^" or "_" works as expected. See examples 1 & 2 2. Trying "-" is the same as "_". This isn't documented, and probably shouldn't be. But it would be useful to have this syntax for horizontally aligned text. See example 3. 3. Tweaking the Y-offset by 0.0 using "_" appears to change it to having used "^" if you see what I mean. Example 4. Tweaking it to -0.6 gives the result I want. Example 5. 4. In the Internals manual, the unit for the Y-offset property is not mentioned. This wastes a lot of time in experimentation, especially given issue 3! Regards, Peter mailto:lilyp...@ptoye.com www.ptoye.com \version "2.19.52" \language "english" \markup{\left-align "1. What I would expect"} \score { \new PianoStaff << \new Staff { \clef "treble" c''2 2 } \new Dynamics { s2\p s2_\markup {\italic "meno " \dynamic p} } \new Staff { \clef "bass" c2 2 } >> } \markup {\left-align "2. What I would also expect"} \score { \new PianoStaff << \new Staff { \clef "treble" c''2 2 } \new Dynamics { s2\p s2^\markup {\italic "meno " \dynamic p} } \new Staff { \clef "bass" c2 2 } >> } \markup { \left-align "3. I would like this to be centered vertically. It seems to be the same as using \"_\""} \score { \new PianoStaff << \new Staff { \clef "treble" c''2 2 } \new Dynamics { s2\p s2-\markup {\italic "meno " \dynamic p} } \new Staff { \clef "bass" c2 2 } >> } \markup {\left-align "4. What I would not expect - why has the text shifted upwards?"} \score { \new PianoStaff << \new Staff { \clef "treble" c''2 2 } \new Dynamics { s2\p \override TextScript.Y-offset = #0.0 s2_\markup {\italic "meno " \dynamic p} } \new Staff { \clef "bass" c2 2 } >> } \markup {\left-align "This is what I want!"} \score { \new PianoStaff << \new Staff { \clef "treble" c''2 2 } \new Dynamics { s2\p \override TextScript.Y-offset = #-0.6 s2_\markup {\italic "meno " \dynamic p} } \new Staff { \clef "bass" c2 2 } >> } _______________________________________________ bug-lilypond mailing list bug-lilypond@gnu.org https://lists.gnu.org/mailman/listinfo/bug-lilypond