|
From: | Aaron Hill |
Subject: | Re: Document/Example how to create "standalone" markup commands |
Date: | Thu, 07 Jun 2018 06:34:56 -0700 |
User-agent: | Roundcube Webmail/1.3.6 |
On 2018-06-07 05:40, David Kastrup wrote:
Urs Liska <address@hidden> writes:doubleBox = #(define-event-function (text) (markup?) (make-music 'TextScriptEvent 'text (markup #:override '(box-padding . 0.4) #:box #:override '(box-padding . 0.6) #:box text)))doubleBox = -\markup \override #'(box-padding . 0.4) \box \override #'(box-padding . 0.6) \box \etc
Hi David,Correct me if I am wrong, but the second definition is usable as a function. That is, it cannot accept a parameter for customizing the markup. Unless `\etc` is something magical that is undocumented, the resulting `\doubleBox` would have to be a complete idea.
It would seem Urs' version is necessary if you need to be able to provide a parameter, which more closely matches the intention of the original `\doubleBox` as a markup function.
-- Aaron Hill
[Prev in Thread] | Current Thread | [Next in Thread] |