lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: align markup text to right side of measure


From: Aaron Hill
Subject: Re: align markup text to right side of measure
Date: Mon, 04 Jun 2018 14:07:09 -0700
User-agent: Roundcube Webmail/1.3.6

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]