[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Making markup functions parametric
From: |
Aaron Hill |
Subject: |
Re: Making markup functions parametric |
Date: |
Fri, 03 Jul 2020 14:12:51 -0700 |
User-agent: |
Roundcube Webmail/1.4.2 |
On 2020-07-03 1:07 pm, Urs Liska wrote:
But I'd rather do something like
(markup (assq-ref enclosures enclosure) "CC")
markup is a macro, and macros appear to have unique rules of evaluation.
The following approach defers the macro expansion:
%%%%
\version "2.20.0"
#(define-markup-command
(test layout props enclosure content)
(boolean? markup?)
(interpret-markup layout props
(primitive-eval
(list 'markup
(if enclosure #:box #:circle)
content))))
\markup {
\test ##t box
\test ##f circle
}
%%%%
-- Aaron Hill
- Making markup functions parametric, Urs Liska, 2020/07/03
- Re: Making markup functions parametric, Ralf Mattes, 2020/07/03
- 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