Le mardi 07 mars 2023 à 10:46 +0100, Michael Gerdau a écrit :

> Hi list!
> 
> I'm trying to place an articulation right in the middle of the Staff and 
> I seem to lack the proper incantation. When I increase Y-offset to e.g. 
> #3 the little "z" is printed above the Staff. I want it to appear at 
> about the gis position on top of the stem. What do I have to adjust to 
> make it work?
> 
> \version "2.25.2"
> 
> music = \relative d' {
>    \override TextScript.Y-offset=#2
>    \override TextScript.X-offset=#0.5
>    d2_\markup { \musicglyph "z" }\repeatTie r2
> }
> 
> \score {
>    \music
> }


```
\version "2.25.2"

music = \relative d' {
   \override TextScript.Y-offset=#0
   \override TextScript.outside-staff-priority = ##f
   \override TextScript.X-offset=#0.5
   d2_\markup \vcenter \musicglyph "z" \repeatTie r2
}

\score {
   \music
}
```

If you don't turn off outside-staff-priority, it will try to prevent the 
collision, moving the text script out of the staff.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to