Rodrigo Fresneda schrieb:

Today I received a buggy tex document from a friend, and LyX could't import it:

Warning: #LyX file created by tex2lyx 1.6.2
LyX Code: 8 name: unknown
../../../src/support/lassert.cpp(21): ASSERTION false VIOLATED IN ../../src/insets/Inset.cpp:137 ../../../src/support/lassert.cpp(21): ASSERTION buf VIOLATED IN ../../src/BufferList.cpp:95
Error: Inset::buffer_ member not initialized!
----------------------------------------
LyX Code: 8 name: unknown
No file open!
The current document was closed.

However, LateX just gives: ! Package amsmath Error: Multiple \label's: label 'B' will be lost.

So the TeX file itself is buggy, so how should tex2lyx create a working LyX 
file out of it?

So I managed to isolate the problem, and it really amounts to two labels inside an align environment, like this:

\begin{align}
\label{A} \label{B}
\end{align}

Although this is incorrect LaTeX, tex2lyx shouldn't crash, so please report it 
as bug.

regards Uwe

Reply via email to