[Top][All Lists]

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

Re: \tag and \tweak

From: Jean Abou Samra
Subject: Re: \tag and \tweak
Date: Fri, 26 Nov 2021 19:35:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1

Le 26/11/2021 à 19:21, Werner LEMBERG a écrit :
This time a syntax question: Is it possible to combine `\tag` with
`\tweak`?  I have tried the following:

   g-\tag #'score \tweak X-offset #-3
                  _\markup { "foo" } |

However, this makes the `\markup` disappear if `\keepWithTag` doesn't
contain `#'score` (which is kind-of logical).

In case there isn't a nifty trick I will prepare a patch for NR to
explicitly state that `\tag` doesn't work with `\tweak`.

The question is, why do you expect it to work this way
in the first place? "\tweak [Grob.]property value music"
is just one syntax element. "\tweak [Grob.]property value"
does not have an existence on its own. Similarly, you
cannot do

someVariable = \tweak X-offset -3

even though you can do

someFunction = \tweak X-offset -3 \etc

It's common to define variables with tweaks like

myMarkup = \tweak X-offset -3 _\markup foo

What should this do then?

{ g-\tag score \myMarkup }

Bottom line: I think it's not an issue but perfectly
expected and desirable behavior.


reply via email to

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