"Clapp, Craig" <craig.cl...@polycom.com> writes: > I have been encountering trouble with importing LaTeX files into LyX - > up to the severity of program crashes. > > Attached is an example which causes tex2lyx.exe to crash and an empty > .lyx file to be produced. The file 'journal.tex' is the LaTeX sample > provided by the American Mathematical Society for articles submitted to > the Journal of the AMS.
I committed fixes to both trunk and the 1.6.5svn branch fixing this crash. At the same time I made a few cosmetic changes to the amsart class. > Also included is the AMS' template file, jams-l_template.tex, for the > same journal. This results in LyX reporting an error about tex2lyx, but > this time without Windows reporting a program crash, and an empty .lyx > file being produced. This is because this time, tex2lyx exists with a proper error saying that it does not know the jams-l class. Providing one would be trivial (if needed), since it is a very thin wrapper around amsart. Just start tex2lyx from command line with tex2lyx -c amsart jams-l_template.tex and you'll get the same good old crash you enjoyed with journal.tex :) A quick (untested) workaround for the crash would be to open the file amsart.layout with an editor and move the lines DefaultModule theorems-ams DefaultModule eqs-within-sections DefaultModule figs-within-sections to the end of the file. JMarc