lilypond-user
[Top][All Lists]
Advanced

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

Re: \tweak and \markup variables


From: Thomas Morley
Subject: Re: \tweak and \markup variables
Date: Tue, 21 Oct 2014 01:31:23 +0200

2014-10-20 1:19 GMT+02:00 Gilberto Agostinho <address@hidden>:
> Hello LilyPonders,
>
> I am having a problem creating a single variable that involves \tweak.
> Basically, here is the problem:
>
> This works fine:
> myVariable = \markup{"foo bar"}
> { c'^\myVariable }
>
> This works fine as well:
> myVariable = \markup{"foo bar"}
> { c'-\tweak extra-offset #'(-3 . 1)^\myVariable }
>
> But this does not work:
> myVariable = \tweak extra-offset #'(-3 . 1)^\markup{"foo bar"}
> { c'-\myVariable }

Well, it _does_ work on my machine with 2.19.13
Changing it to
... \tweak #'extra-offset ...
makes it work with 2.16.0 as well.

-Harm

>
> Not even using two variables I could make it work (and I wouldn't want to
> carry two variables over the whole score anyway):
> myVariableOne = \tweak extra-offset #'(-3 . 1)}
> myVariableTwo = \markup{"foo bar"}
> { c'-\myVariableOne^\myVariableTwo }
>
> So how can I tweak the offset of a markup text inside a variable? Does
> anyone have any suggestion how to tackle this problem?
>
> As always, thanks a lot for any help,
> Gilberto



reply via email to

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