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" ? Of course I can do
circlefunc = \markup\circle\etc
\markup \test \circlefunc "whatever"
but this requires an extra function definition, so it makes it harder to
exchange \circle for something different. (In my own super-clumsy idea I
could write \markup \test #'circle "whatever".)
Lukas