Hi,
        recently I had a colleague that asked to convert some tex document to 
lyx 
because it was failing for him.

        After some work, involving bissections :-) , I dound out that the 
culprit 
was a subfloat.

Basically a call like

\subfloat{somegraphics}

fails to produce a legal lyx file. LyX complains that it gets a corrupted 
file: "...file ended unexpectedly, which means that it is probably corrupted."

Changing that to
\subfloat[]{somegraphics}

that is adding an empty optional argument fixes the issue.

FWIW latex (pdflatex fwiw) works on both instances.

I tried to look into the tex2lyx code but I did not found any obvious culprit.

Regards,
-- 
José Abílio

Reply via email to