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.
Best,
Jean