When inserting an eqnarray environment, it seems that Lyx by default creates a Latex equivalent
\begin{eqnarray*}
.......... \\
.......... \\
:
..........
\end{eqnarray}environemnt which does not create any equation numbers. I.e. {eqnarray*} and not {eqnarray} is used.
If one now adds a label to any of the lines (say the second one) in the eqnarray environment, the resulting Latex code generate by Lyx changes to:
\begin{eqnarray}
.......... \nonumber \\
.......... \label{foo} \\
:
.......... \nonumber
\end{eqnarray}I.e. {eqnarray*} changes to {eqnarray} to allow equation numbers, a \label tag is added to the relevant line and a \nonumber tag is added to the rest of the lines to suppress equation number generation.
Now, if you delete the label from the second line using the standard Lyx way, i.e. setting it to an empty string (Lyx will display (#)), the resulting Latex code becomes
\begin{eqnarray}
.......... \nonumber \\
.......... \\
:
.......... \nonumber
\end{eqnarray}In other words, the \label tag is removed but the needed \nonumber tag is not replaced. This will result in the equation number still being rendered in the final output. One can turn of ALL the equation numbers using 'A-m n' but that acts globally on the whole eqnarray environment.
For this reason there is no way (as far as I can tell) in Lyx to remove one or more (but not all) labels from an eqnarray environment and also having the resulting equation numbers suppressed.
Is this a bug... or am I missing something?
--- Rudolph
