[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 13:28:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Urs Liska <lists@openlilylib.org> writes:
> In the following markup command definition
>
> #(define-markup-command (test layout props enclosure content)
> (scheme? markup?)
> (interpret-markup layout props (markup #:circle content)))
>
> I would like to make the #:circle parametric, i.e. I want to pass
> something into the function (e.g. as the 'enclosure' argument) and
> apply the corresponding markup function within the markup expression.
> The argument could be a function directly or a symbol from which it is
> referenced.
>
> Howeve, I would like to dynamically apply the markup function here
> rather than create a structure that chooses a complete markup
> expression based on the desirec markup type.
>
> Unfortunately I don't really have an idea what "#:circle" actually
> *is*, so I have no clue about getting where I need to.
>
> BestUrs
test =
#(define-scheme-function (enclosure content)
(markup-function? markup?)
(list enclosure #{ \markup \box #content #}))
\markup \test \markup \circle \with-color #red \etc "whatever"
--
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 <=