Re: problems with documents produced with earlier

2018-05-23 Thread Jürgen Spitzmüller
Am Mittwoch, den 23.05.2018, 13:52 +0200 schrieb Michael Berger:
> Hello dear Lyxers,
> 
> after upgrading LyX to version 2.2.3 opening and editing
> (linguistic) 
> papers made with earlier versions of LyX does work.
> Conversion to PDF of each single child document works as well. But 
> trying to generate a PDF from the master document results in an
> endless 
> loop.
> 
> Any hint as to what could be the cause?

Hard to say without a MWE.

Jürgen



signature.asc
Description: This is a digitally signed message part


Re: tex2LyX

2018-05-23 Thread Jürgen Spitzmüller
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]


problems with documents produced with earlier

2018-05-23 Thread Michael Berger

Hello dear Lyxers,

after upgrading LyX to version 2.2.3 opening and editing (linguistic) 
papers made with earlier versions of LyX does work.
Conversion to PDF of each single child document works as well. But 
trying to generate a PDF from the master document results in an endless 
loop.


Any hint as to what could be the cause?

The papers were made in Mageia 5, now using Mageia 6

Michael