Uwe Stöhr <uwesto...@web.de> writes:
> Uwe Stöhr schrieb:
>
>>  > When I try a File|Import|Latex (plain) with the simple file
>>  >
>>  > \documentclass{article}
>>  > \begin{document}
>>  > \begin{eqnarray}\label{eq:scalinglnlambda}
>>  > A & = & B \nonumber \\
>>  > & = & C\end{eqnarray}
>>  > \end{document}
>>
>> This is the same with LyX 1.6.2. Can you please report this bug it
>> at bugzilla.lyx.org?
>
> I had a look and I think its not a bug but a missing feature. You have
> the label in the first line but suppresses the number of this line.
> But when you reference the label, you reference the number of its
> line, but this is what you suppressed.
> I wonder that LaTeX allows this.

This is a real bug IMO. It is very normal to associate the label to the
global equation when only one line is numbered.

Actually, \label{foo} does not mean "number this line and give it name
foo" but "the next numbered line will be associated to label foo". This
works fine because the number is already known when beginning the
equation. 

Of course, this can become ugly since
  \begin{eqnarray}\label{foo1}
  a&=&B\nonumber
  \end{eqnarray}
  and then
  \begin{eqnarray}
  C&=&D
  \end{eqnarray}
will set foo1 as the label of the second equation. This is not something
we can support, but the original request is quite valid and is a bug.

JMarc

Reply via email to