Subject: mailing-list for TeXmacs Users
List archive
From : Joris van der Hoeven <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] funky macro behaviour
- Date: Thu, 24 Sep 2009 21:43:21 +0200
Hi Edward,
Yes, your macro is a bit funky, since it cannot be determined automatically
that
its arity is either one or two (a heuristic algorithm is used for this and
it probably thinks that there should always be two arguments, since your macro
takes two arguments). You may use the 'drd-props' primitive in order to
set the right properties manually.
As a general rul though, if-based macros are fragile.
Best wishes, Joris
On Sun, Sep 13, 2009 at 12:18:40AM -0700, bytecolor wrote:
> The doc below has a single macro `hey'. If I try \hey, it just writes "Hey
> and , you form a nice couple". Shown by <hey||> in the doc. I've noticed
> other peculiarities like the simple hello macro. If the arguments are used
> in the body, \hello will not ask for input. This could be ok in some
> instances, but in \hey it just does not work. Can someone slap me around a
> bit and explain what is going on?
>
> <TeXmacs|1.0.7.2>
>
> <style|generic>
>
> <\body>
> <assign|hey|<\macro|first|second>
> <if|<equal|<arg|second>|<uninit>>|Hey <arg|first>, you look lonely
> today...|Hey <arg|first> and <arg|second>, you form a nice couple>
> </macro>>
>
> <hey||>
>
> \;
> </body>
>
> <\initial>
> <\collection>
> <associate|page-type|letter>
> </collection>
> </initial>
>
> --
> bytecolor (S. Edward Dolan)
>
>
>
- [TeXmacs] funky macro behaviour, bytecolor, 09/13/2009
- Re: [TeXmacs] funky macro behaviour, Joris van der Hoeven, 09/24/2009
Archive powered by MHonArc 2.6.19.