It works perfectly now. Thanks !
Am Freitag, 18. November 2005 17:27 schrieben Sie: > Here it goes the original tex file. Don't you worry is not confidential at > all, just for educational purposes. > > And if you solve the problem, please tell me or tell the forum so all of us > can learn from these bugs. It was very easy: You had the two commands \newcommand {\be} {\begin{equation}} \newcommand {\ee} {\end {equation}} in the preamble and used these. This falls under the category "dirty tricks" as far as tex2lyx is concerned, because tex2lyx does not know that these commands start math mode and does not interpret macros. Everything works well if you replace these commands by their definition: s/^\\be$/\\begin{equation}/ s/^\\ee$/\\end{equation}/ replaced all but one occurence, which I searched and replaced by hand. I needed to bind the searched words to the beginning and end of the line, otherwise it would also find \begin and \end. Georg