On Tue, Oct 29, 2002 at 09:21:01AM -0200, Joao Luis Meloni Assirati wrote: > Is this really a bug? Should I fill a record in bugzilla?
hmm, isn't there something like this already ? ... http://bugzilla.lyx.org/show_bug.cgi?id=267 http://bugzilla.lyx.org/show_bug.cgi?id=594 is it one of those ? john > Create and eqnarray, ams align, or ams gather, with more then one line > and insert labels for at least two of the lines. Then toggle off numbering > of one of the labeled lines. Exporting to latex shows that line with both > \label{} and \nonumber. > > More generaly: until you toggle off numbering of all labeled lines, lyx > will export the lines with both \label{} and \nonumber. > > This is bad because: > > 1) Suppose you have an eqnarray with two equations and puts the label > 'asd' in the first one. Than you change your mind and decides that it is > the second equation that deserves the label 'asd'. You do that by toggling > off numbering of the first equation and inserting the label 'asd' in the > second. As a consequence, you will end up with a multiply defined labels. > > 2) AMS align or gather simply don't accept \label{} and \nonumber in the > same equation. > > So it seems that it is better to suppress \label{} in the exported > latex whenever numbering of the line is toggled off. -- ""All the people we like are We, and everyone else is They." - Kipling