- From: Joris van der Hoeven <address@hidden>
- To: Amit Dubey <address@hidden>
- Cc: <address@hidden>
- Subject: Re: [TeXmacs] An easy(?) question: how to force typesetting?
- Date: Mon, 25 Oct 2004 12:27:19 +0200 (CEST)
Hi Amit,
On Mon, 25 Oct 2004, Amit Dubey wrote:
>
I am using an external scheme script, and I need to make sure that
>
a <reference|...> command is evaluated before the result is sent as
>
an argument. Alternatively, I would like to execute the <reference|...>
>
from the scheme script itself.
>
>
E.g. what I have is:
>
>
<assign|myfunc|<macro|x|<extern|scheme-func|<reference|<arg|x>>>>>
>
>
And I'd like "scheme-func" to receive the result of "reference"
>
rather than the tree <reference|...>
The tree "reference" *is* evaluated, but to itself...
In general, if you yant to force evaluation,
you may use the "quasi" and "unquote" primitives.
This is actually a bug (well, a small one, since this was not
needed by anyone until recently): the "reference" primitive is
only evaluated by the typesetter, not by the macro language.
I probably did that so, because the typesetter also adds
a hyperlink. I will correct this bug as soon as possible.
Please remind if I forget to do so for the next version.
Best wishes, Joris
Archive powered by MHonArc 2.6.19.