Frank J. Iannarilli wrote:
Hi,


I'm trying to import a SWP "portable LaTeX" file into LyX1.5.2 (just downloaded few days ago - web-based installer, WinXP). I keep getting the same resulting error message (pop-up):


   "LyX: Document Format Failure
C:\Documents and Settings...\Local Settings\Temp\lyx_tempdirXXX\XXX ended unexpectedly, which means that it is probably corrupted."


Then the LyX GUI shows a partially imported result. I've tried several variations to diagnose what might be the problem:

1. First tried importing the .tex file, that contained .wmf files for \includegraphics (I had installed metafile2eps). The partial import did display the graphics. But I thought perhaps the conversion/render script buffer might be "overfilled"...

2. Then I converted all my graphics to .eps, changed their references to .eps in the .tex file, then tried again. Same result (same point in document at which the import was partial). So it wasn't due to .wmf conversion overflows...

3. I tried snipping out the section of the document around the area where the import terminated. The subsequent import effort produced a partial import that proceeded further into the document. I could not discern any commonality between the two halting points in the raw .tex file.

Some other clues:

A. I did notice that of the several figures imported, only 1 was treated as a float, with caption. I examined this and compared it to the other figures not so treated, and could not discern any difference between their \begin{figure} and \includegraphics directives.

B. Before exiting the LyX session, I went into the Temp folder, and found what appeared to be a temporary lyx-format file (no extension) - it contained a tex2lyx conversion of my *entire* .tex file. So perhaps (in my feeble understanding) the problem lies in the lyx2lyx conversion?


Does anyone have any immediate suggestions? Should this get posted to bugzilla?

If/when I succeed, I intend to post a "how-to" for SWP-to-LyX (as of 1.5.2).

Thanks!


Hey Frank,

Was the XXX file in the error message your SWP file, the intermediate file you found, or the final .lyx file?

There are some known instances of tex2lyx failing, and SWP lards up its "portable" files with lots of SWP-specific macros. The divide-and-conquer approach you were taking usually works at isolating where the problem lies.

If you'd care to send the files to me, or post them here, I'll take a look and see if I can narrow down where the problem lies.

/Paul

Reply via email to