lilypond-user
[Top][All Lists]
Advanced

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

Re: tweak markup text


From: Aaron Hill
Subject: Re: tweak markup text
Date: Tue, 25 Sep 2018 11:31:45 -0700
User-agent: Roundcube Webmail/1.3.6

On 2018-09-25 7:38 am, Abraham Lee wrote:
Hi, Ryan!

On Tue, Sep 25, 2018 at 8:34 AM Ryan Michael <address@hidden>
wrote:

Hello

I am trying to offset my markup text above the staff by a horizontal
quantity. I can't seem to do so. I have tried


%%%%%%%%%
\version "2.18.2"

r8^\markup{\tweak #'X-offset #1.5\huge"tempo I"} r8 r2.

%%%%%%%%%

 but that results in a syntax error.


Try this instead:

\markup { \hspace #1.5 \huge “tempo I” }

Be aware that \hspace only changes the effective width of the markup, so whether it moves the text depends on the alignment with the notes. When the text is centered, the text would move to the right but by half the amount you specify. If the markup is right-aligned, then \hspace would have no effect on the placement of the text.

For more precise control, consider the following markup:

%%%%
\markup \translate #'(1.5 0) \huge "tempo I"
%%%%

Note that you need the offset to be relative to the font size, use \translate-scaled instead.


-- Aaron Hill



reply via email to

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