[Top][All Lists]

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

Re: Making markup functions parametric

From: Lukas-Fabian Moser
Subject: Re: Making markup functions parametric
Date: Sat, 4 Jul 2020 14:50:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

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 .

Hm, I think I do not understand. With

test =
#(define-scheme-function (enclosure content)
   (markup-function? markup?)
   (list enclosure #{ \markup \box #content #}))

I can do and compile

\test \markup \circle \etc "whatever"

as well as

circlefunc = \markup\circle\etc
\markup \test \circlefunc "whatever"


\markup \test \circle "whatever"

fails with

/tmp/frescobaldi-7l5ntq0c/tmp1iduvtxw/ Fehler: syntax error, unexpected MARKUP_FUNCTION, expecting \header

\markup \test

\circle "whatever"

/tmp/frescobaldi-7l5ntq0c/tmp1iduvtxw/ Fehler: Haupt-Eingabe nicht beendet

\markup \test \circle "whatever"

schwerer Fehler: gescheiterte Dateien: "/tmp/frescobaldi-7l5ntq0c/tmp1iduvtxw/"

So, I can't believe that \circlefunc and \circle should be actually equivalent.


reply via email to

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