> Rainer Dorsch wrote:
> > 
> > I am wondering, if it is possible to protect math environments. This is
> > useful, if commands like \addcontentsline with non-robust commands are used.
> 
> i don't know, if i understand your problem well.
> 
> 
> \newcommmand{\myMathEnv}{
>   \begin{anyMathEnv}
>   ..... all the mathstuff ....
>   \end{anyMathEnv}%
> }
> 
> in text
> 
> \addcontentsline{toc}{chapter}{\protect\myMathEnv}
> 

Thanks for the quick reply.

I want to use the formula editor of lyx to enter the formulas. And it inserts 
in the latex file

\( stuff \)

but I need

\protect\( stuff \protect\)

So I would need a magic key in the math environment of lyx which protects it.

Rainer.



Reply via email to