On 9/4/05, Srinivas Nedunuri <[EMAIL PROTECTED]> wrote:
> Hello, I tried defining a macro as described in the User Guide (the
> macrowarg example). However, I get the following erroe message:
> 
>     Extra }, or forgotten $.
>      \newcommand{\macrowarg}[1]{2+\sqrt{#1}}
> 
> What is wrong here? The code looks identical to what the User Guide says is
> produced.
> 
> (BTW, If I try surrounding the macro body with $ (by shifting into math mode
> in Lyx) I get a complaint that you can't use #1 inside math mode

Maybe, Srinivas, it is simpler to do the following:

1. write \newcommand{\macrowarg}[1] and select it;

2. crtl+m;

3. insert 2+\sqrt{#1 in the first empty box.

This should work fine.

Paul

Reply via email to