Timeline for Lilypond: How to modify stencil by automatically getting the current stencil and do something based on it?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 31 at 2:43 | comment | added | Van Lee F. X. P. | I see the second answer, but after trying some examples I found that it contains certain limitations compared to your solution. So can you keep your answer and do not delete it right now until I get clear with the other method? thanks | |
Oct 31 at 2:20 | vote | accept | Van Lee F. X. P. | ||
Oct 31 at 6:18 | |||||
Oct 30 at 19:40 | comment | added | Lazy |
@VanLeeF.X.P. Another user rightfully pointed out that in fact ly:grob-basic-properties can be used as long as one uses the \temporary keyword. Please consider accepting that answer, so this one can be deleted.
|
|
Oct 30 at 16:31 | comment | added | Lazy | @VanLeeF.X.P. Theoretically yes, although it would need some hacks, as there is no proper scheme access to the finalizations context property (except through engravers). | |
Oct 30 at 14:16 | comment | added | Van Lee F. X. P. |
Thanks a lot! Working for my example now. I wonder whether it is possible to make the self-defined \bracketify command take effect only once without needing to manually \revert the stencil like the \once\override command.
|
|
Oct 30 at 13:21 | vote | accept | Van Lee F. X. P. | ||
Oct 31 at 1:56 | |||||
Oct 30 at 12:47 | history | answered | Lazy | CC BY-SA 4.0 |