[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
- Re: Making markup functions parametric, (continued)
- Re: Making markup functions parametric, Robin Bannister, 2020/07/03
- Re: Making markup functions parametric, Urs Liska, 2020/07/03
- Re: Making markup functions parametric, Lukas-Fabian Moser, 2020/07/03
- Re: Making markup functions parametric, Lukas-Fabian Moser, 2020/07/03
- Re: Making markup functions parametric, Urs Liska, 2020/07/03
- Re: Making markup functions parametric, Urs Liska, 2020/07/04
- Re: Making markup functions parametric, Lukas-Fabian Moser, 2020/07/04
- Re: Making markup functions parametric, Urs Liska, 2020/07/04
Re: Making markup functions parametric, David Kastrup, 2020/07/04