Thanks for the solutions Angus.. I'm not sure if I'm implementing them
correctly since the first method (using the preamble and main body)
compiles fine but doesn't give me bold greeks and instead gives me the
following at the point where I put the begin_inset commands in ERT:

_inset FormulaMacro
inset
_inset FormulaMacro
inset

The second solution doesn't compile. I get the following errors:

1. You can't use `macro parameter character #' in vertical mode.
 {\mathbf{#1}
                  }
Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

2. LaTeX Error: \mathbf allowed only in math mode.
 {\mathbf{#1}
                  }
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

You did mean include the command anywhere in the main body right? 

Thanks,
nirmal

> I have used this in the past:
> 
> This in the preamble:
> 
> \newcommand{\bmath}[1]{\boldsymbol{#1}}
> \let\newcommand=\providecommand
> 
> and this in the main body:
> 
> \begin_inset FormulaMacro
> \newcommand{\bmath}[1]{{#1}}
> 
> \end_inset
> 
> \begin_inset FormulaMacro
> \newcommand{\Matrix}[1]{\bmath{#1}}
> 
> \end_inset
> 
> I now need nothng in the preamble because this works perfectly:
> \begin_inset FormulaMacro
> \newcommand{\Matrix}[1]{\boldsymbol{#1}}
> {\mathbf{#1}}
> \end_inset
> 
> Hope this helps...
> 
> -- 
> Angus
> 
> 

Reply via email to