Subject: mailing-list for TeXmacs Users
List archive
From : Dan Synek <address@hidden>- To: address@hidden
- Subject: Question on simple macro
- Date: Tue, 10 Sep 2002 11:19:30 +0200
Hi,
I am trying to understand how to write simple macros. I have read the documentation in Help, but without success.
I want to write a simple macro that takes one argument 'x' and inserts the text "hello x".
What I try is this:
meta-i = hellomacro To create a named thing
meta-i m Make it a macro
x Variable is x
tab It takes one argument so I guess the body comes here??????
hello the text
meta-i # Here I want the argument
x
After having pressed return, i f I now type "meta i e hellomacro tab Dan" and then return
I get the text <macro|x|hello<argument|x>
What am I doing wrong?
Dan
- Question on simple macro, Dan Synek, 09/10/2002
- Re: Question on simple macro, Joris van der Hoeven, 09/10/2002
- Activation was: Re: Question on simple macro, Dan Synek, 09/10/2002
- Re: Activation was: Re: Question on simple macro, Joris van der Hoeven, 09/10/2002
- Activation was: Re: Question on simple macro, Dan Synek, 09/10/2002
- Re: Question on simple macro, Joris van der Hoeven, 09/10/2002
Archive powered by MHonArc 2.6.19.