"Bennett Helm" <[EMAIL PROTECTED]> writes:
> I agree: this is a problem. There are legitimate reasons to want to have the
> same label twice in a document, as when the labels are in different
> branches.

Agreed. A way to alleviate the problem would be to skip insets that
produce no output when checking for duplicates (use producesOutput)

> LyX should warn of the potential problem and offer to rename, but allow the
> user to decide what to do. (There already is the "DUPLICATE:" warning on the
> labels, which is reasonable and which makes it easy to find the labels when
> using outline view.) When typesetting, LyX should again warn when there are
> duplicate labels in the produced LaTeX file, since otherwise there may be
> unexpected results. But LyX shouldn't presume that it knows better than the
> user. (That's one reason I can't stand Word.)

Where is the code that renames labels? I do not really understand this
part of code. 

JMarc

Reply via email to