I'm running LyX 1.2 on redhat 7.3. When I attempt to import a LaTeX
document containing an equation whose label is of the form
\label{eq:1_a}, reLyX (Revision date 2001/08/31) converts the equation
label in LyX to "eq:1_{a". Cross-references in the original LaTeX
document no longer work since an in-text cross reference of the form
\ref{eq:1_a} is preserved in the corresponding reLyX derived LyX document.
Workaround: I don't write equation labels in LaTeX of the form
\label{eq:1_a} anymore but this is not an ideal solution.
Disclaimer: I do not know if this bug is fixed in LyX 1.2.1 or in
current CVS. If it is, I am sorry for wasting everyone's time.
The original LaTeX source, the reLyX-based imported LyX document and the
reLyX error messages are enclosed.
Keep up the great work y'all are doin' with LyX. I for one am
breathlessly waiting for the Qt frontend to finally make its appearance.
Anand
lyx2_eqbug.tex
Description: TeX document
#LyX 1.2 created this file. For more info see http://www.lyx.org/ \lyxformat 220 \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize 11 \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \use_natbib 0 \use_numerical_citations 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \begin_inset Formula \begin{equation} X=0\label{eq:1_{a}\end{equation} \end_inset Equation\SpecialChar ~ ( \begin_inset LatexCommand \ref{eq:1_a} \end_inset )'s label seems wrong. \the_end
[anand@agape3 anand]$ lyx
reLyX directory is: /usr/share/lyx/reLyX
reLyX, the LaTeX to LyX translator. Revision date 2001/08/31
Reading LaTeX command syntax
(lyx2_eqbug.tex: Splitting Preamble
Creating LyX preamble
Reading layout file
Cleaning... Translating... Writing... )
Deleting temp files
Finished successfully!
Tokens:
\begin[{,1][e,11][q,11][u,11][a,11][t,11][i,11][o,11][n,11][},2][
,10][
,10][X,11][=,12][0,12]\label[{,1][e,11][q,11][:,12][1,12][_,8][{,1][a,11][},2][},2]
<#> [
,10]\end[{,1][e,11][q,11][u,11][a,11][t,11][i,11][o,11][n,11][},2]
found '}' unexpectedly, array: '[char X mathalpha][char =
mathalpha][char 0 mathalpha]'
