]> git.lyx.org Git - features.git/blobdiff - src/tex2lyx/Preamble.cpp
tex2lyx/Preamble.cpp: revert a part of [041a3add/lyxgit]
[features.git] / src / tex2lyx / Preamble.cpp
index d1733dd7256fd9a60ba5e06965cb31e84172024b..f5316bca131fa89efd2670904e9b23bf4bbaa9b3 100644 (file)
@@ -1692,17 +1692,8 @@ void Preamble::parse(Parser & p, string const & forceclass,
 
                        add_known_theorem(name, opt1, !opt2.empty(), from_utf8(complete));
 
-                       // we know that our theorem module already add automatically some
-                       // theorem definition. They must not be output in the preamble to
-                       // avoid LaTeX errors about redefinitions
-                       if (complete == "\\newtheorem{thm}{\\protect\\theoremname}")
-                               in_lyx_preamble = true;
-                       else
-                               in_lyx_preamble = false;
-
                        if (!in_lyx_preamble)
-                               h_preamble << "\\newtheorem{" << name << '}'
-                                          << opt1 << opt2 << '{' << body << '}' << opt3;
+                               h_preamble << complete;
                }
 
                else if (t.cs() == "def") {