mailing-list for TeXmacs Users

Text archives Help


Question on simple macro


Chronological Thread 
  • 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





Archive powered by MHonArc 2.6.19.

Top of page