[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Override multiple properties in one statement?
From: |
David Kastrup |
Subject: |
Re: Override multiple properties in one statement? |
Date: |
Thu, 30 Jun 2022 22:39:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Ahanu Banerjee <athecellist@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