On 2018-06-04 12:37, Simon Albrecht wrote:
On 04.06.2018 21:22, Reilly Farrell wrote:
I'm looking for a way to control the alignment of markup text.  Specifically, I'm looking to align "D.C. al Fine" to the very right side of a measure, rather than having it float above a given note.

That’s simple, if you use a RehearsalMark – which is semantically no
bad idea anyway:

\version "2.19.80"
{
  1
  \tweak self-alignment-X -1 \mark\markup \normal-text\italic "D. C. al Fine"
  1
}

Just for the sake of readability, you might want to use #LEFT, #CENTER, or #RIGHT when setting the self-alignment-X property:

%%%%
  \version "2.19.80"
  {
    1
    \tweak self-alignment-X #LEFT
    \mark \markup \small "LEFT"
    4 4 4 4
    \tweak self-alignment-X #CENTER
    \mark \markup \small "CENTER"
    4 4 4 4
    \tweak self-alignment-X #RIGHT
    \mark \markup \small "RIGHT"
    1
  }
%%%%

That is a whole lot easier than trying to remember whether 1 or -1 means left or right.

-- Aaron Hill

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to