If a lyx file contains an equation with a label containing a closing
brace, the lyx file is not parsed correctly in lyx1.2.1cvs. 

To reproduce, insert in an empty document a display equation. Put some
formula, say "a". Insert a label, say "eq:{T}EST". Save the file. Close
the file. Open it in lyx1.2.1cvs. The following message appears on the
terminal:

Tokens: \begin[{,1][e,b][q,b][u,b][a,b][t,b][i,b][o,b][n,b][},2][
,a][a,b]\label[{,1][e,b][q,b][:,c][{,1][T,b][},2][E,b][S,b][T,b][},2] <#>
\end[{,1][e,b][q,b][u,b][a,b][t,b][i,b][o,b][n,b][},2]
found '}' unexpectedly, array: '[char a mathalpha][char E mathalpha][char
S mathalpha][char T mathalpha]'

In the opened document, the closing brace is deleted and the remainder of
the label is appended to the equation. It doesn't matter if there is an
opening brace in the label or not. It doesn't matter if the file is
created with lyx1.1.6 or 1.2.1cvs. Lyx 1.1.6 handles this correctly.

I don't know why anyone would need to put braces in a label. I came
across this in a LaTeX source from a colleague...

Jan

PS: I use lyx1.2.1cvs as of june 23, on Solaris(sparc) 2.7 and Linux(i386)
Debian Potato.

Reply via email to