lilypond-user
[Top][All Lists]
Advanced

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

Re: Making markup functions parametric


From: David Kastrup
Subject: Re: Making markup functions parametric
Date: Sat, 04 Jul 2020 14:43:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lukas-Fabian Moser <lfm@gmx.de> writes:

> Hi David,
>
>> test =
>> #(define-scheme-function (enclosure content)
>>    (markup-function? markup?)
>>    (list enclosure #{ \markup \box #content #}))
>>
>> \markup \test \markup \circle \with-color #red \etc "whatever"
>
> Amazing, wonderfully elegant.
>
> Is there a way to avoid the second "\markup" and "\etc" in \markup
> \test \markup \box \etc "whatever" ?

No.

> Of course I can do
>
> circlefunc = \markup\circle\etc
> \markup \test \circlefunc "whatever"

You can?  Have you tried?  \circlefunc here is quite equivalent to
\circle .

-- 
David Kastrup



reply via email to

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