2018-05-22 9:12 GMT+02:00 Jürgen Spitzmüller
> It's the [section]. See attached file. This looks like a bug. Could you
> file a report, please?
>
The problem is that checkModule() (in tex2lyx.cpp) does not check for
module requirements. It does read the module that provides a specific
layout, but not the modules that are required by it.
In the given case, this means that no LaTeXName is defined for the theorems.
The attached patch is a workaround, but of course this needs to be fixed at
the root, in the mentioned method.
Any takers?
Jürgen
diff --git a/lib/layouts/theorems-sec.module b/lib/layouts/theorems-sec.module
index f22e8a3de7..37ee512323 100644
--- a/lib/layouts/theorems-sec.module
+++ b/lib/layouts/theorems-sec.module
@@ -16,6 +16,8 @@ Counter theorem
End
Style Theorem
+ LatexType Environment
+ LatexName thm
Preamble
\theoremstyle{plain}
\newtheorem{thm}{\protect\theoremname}[section]