Dear Giovanni,Hi Max,
On 17. Nov 2020, at 19:25, Giovanni Piredda <address@hidden> wrote:You should give more info. In which sense the macros "are used"? Scheme
I have defined a Scheme function with the following:
(tm-define (unitSpacer) ; default, will be used in regular text
`(hspace "0.5spc"))
(tm-define (unitSpacer)
(:require (in-math?))
"*")
As far as I understand, the first definition is the default and it is
overridden by the second when I am in math.
In my tests, this happens only in open documents. At the first opening of a
document, only the first definition is used. Does anyone have a hint on what
is happening? Developers ;-) ?
macros can be evaluated in two ways, essentially: either due to input from the user
(e.g. keypress) or because you put some \extern markup in the document and TeXmacs is
typesetting it, in particular evaluating the markup language and arrives to your macro.
I think scheme code in \extern markup is evaluated every time is needed, you
do not have much control of that.
Can you explain how you use those macros?
Archive powered by MHonArc 2.6.19.