Ahanu Banerjee <athecell...@gmail.com> writes:

> Hello,
>
> Is it possible to override or tweak multiple properties of one object at
> once, using one statement? i.e., without typing "\tweak" or "\override"
> multiple times?  (Of course, defining a new function consisting of multiple
> statements is possible, but it's not practical when there are many
> combinations of properties to change throughout a document.)
>
> For example:
>
> \version "2.23.10"
> { c
>   -\tweak outside-staff-priority #'()
>   -\tweak whiteout ##t
>   -\tweak Y-offset #0.25
>   -\tweak X-offset #1.5
>   ^\markup "text" }
If the only variable here is "text", you may use

mtw =
   -\tweak outside-staff-priority #'()
   -\tweak whiteout ##t
   -\tweak Y-offset #0.25
   -\tweak X-offset #1.5
   ^ \etc

{
  c\mtw "text"
}


-- 
David Kastrup

Reply via email to