On Tue, 25 Nov 2025, Kieren MacMillan wrote:

> > There's also parent-alignment-X
> I wonder if there will ever be a day when I don’t learn something new
> about Lilypond…  :)
> > with that, you can center the markup's center over the center of the
> note.


@Lukas, I think I figured out a solution. Does this look right/good to you?

[image: image.png]

%%%  SNIPPET BEGINS
\version "2.24.4"

\layout { ragged-right = ##f indent = 0 }

{
  \textMark "Kieren’s snippet with markups *not* centred as desired:"
  g'
  g'-\tweak self-alignment-X #CENTER ^\markup { Ṯ }
  g'-\tweak self-alignment-X #CENTER ^\markup { Ẕ }
}

{

*  \textMark "Proposed solution:" *  g'
  % Commenting out either *or* both of the following lines
  % will cause the letters not to be centred over the note heads:


*  \override TextScript.self-alignment-X = #CENTER  \override
TextScript.parent-alignment-X = #CENTER*  g'^\markup { Ṯ }
  g'^\markup { Ẕ }
}

%%%  SNIPPET ENDS

Reply via email to