How to insert macro arguments

From what I was able to read up, the tag used for macro arguments is however, when I type <arg|x> it expands to string argx instead of macro argument.

Hi @MPK and welcome to the forum. The macro system’s documentation misses important parts :slight_smile:

Please try \x for entering a macro argument named x. This will work if x appears in the list of arguments; you will get a tan-colored x in the body of the macro. Pls. let me know if this works.

thank you. it works. would you also happen to know how to add arguments to macro in the Insert>Macro>New macro form?

I had not seen that tool. I don’t know how to add arguments, I have only defined macros in the preamble or in style files.
If you press ok in the “new macro” tool, TeXmacs places the macro in the tool into the preamble (see it with Document -> Part -> Show preamble).

Try to type \macro and then insert the argument as slots in the macro.