mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] How to use macro arguments


Chronological Thread 
  • From: François Poulain <address@hidden>
  • To: address@hidden
  • Cc: <address@hidden>
  • Subject: Re: [TeXmacs] How to use macro arguments
  • Date: Wed, 3 Feb 2016 10:20:41 +0100

Hi,

Le Wed, 03 Feb 2016 09:50:47 +0100,
<address@hidden> a écrit :

> <\assign|callmacro|<\multiplo|a|b|a*b>>
>
> i introduce a and b just as characters without any special addition,
> so the problem may reside on an omission at the moment of the
> definition |a|b| , or at the moment of invoking it a*b. Any guess?

The meaning of the code you wrote is, if I correctly understand, 'assign
to "callmacro" a call of a "multiplo" macro, with 3 arguments : a, b,
and a*b'.

I guess you may prefer this kind of thing :

<assign|multiplo|<macro|a|b|<arg|a>*<arg|b>>>

(assign to "multiplo" a macro which takes 2 args (named "a" and "b") and
is evaluated as "arg a * arg b".)

Note that you will produce "<arg|a>" by typing "\a<return>".

<multiplo|x|y>

(call "multiplo" with "x" and "y" as arguments)

Happy TeXmacsing.
François

--
François Poulain <address@hidden>

La vrai passion du XXe siècle, c'est la servitude.
-+- Albert Camus, L'homme révolté -+-



Archive powered by MHonArc 2.6.19.

Top of page