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

On Tue, Sep 25, 2018 at 8:34 AM Ryan Michael <ryan.wiegh...@gmail.com>
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

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

Reply via email to