Compiled & installed todays lyx-1.6 from svn.

It complained that it could not use my custom
.layout, that used to work for 1.5 as well as
a few months old lyx-1.6svn.

I inspected the debug output from
lyx16 -dbg tclass files init
and saw that my .layout file gets converted from
format 2 to format 6. It seems like the entire
file is read, every paragraph type is accepted
without incident. However, it ends like this:
.
.
.
TextClass.cpp(147): Reading style Kode-liten
TextClass.cpp(147): Reading style Kode-stor
TextClass.cpp(147): Reading style Resyme
TextClass.cpp(504): Finished reading textclass: /tmp/8497vlKggY
TextClass.cpp(553): Minimum TocLevel is -1, maximum is 5
Error reading `~/.lyx16/layouts/fu-leksjon.layout'
(Check `fu-leksjon')
Check your installation and try Options/Reconfigure


Some other layouts, such as g-brief2 has the
same problem - but no problem for me as I don't use that.


A very simple trick fixes this - I changed the text from
"Format 2" to "Format 6" in my .layout, and then lyx loads
the document without the "Error reading..." part.

Could there be some sort of trivial error causing
a failure whenever conversion up to format 6 is done?
I tried adding a linefeed at the end of the file, that
did not help.

Helge Hafting







Reply via email to