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}

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/

Reply via email to