[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Making markup functions parametric
From: |
Urs Liska |
Subject: |
Making markup functions parametric |
Date: |
Fri, 03 Jul 2020 21:52:40 +0200 |
User-agent: |
Evolution 3.36.3-1 |
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
- Making markup functions parametric,
Urs Liska <=