Labels in Notes regression

Daniel xracoonx at gmx.de
Thu May 26 04:05:59 UTC 2022


On 2022-05-25 23:27, Andrew Parsloe wrote:
> 
> On 26/05/2022 6:04 am, Daniel wrote:
>> On 2022-05-24 23:53, Andrew Parsloe wrote:
>>> (LyX 2.4.0-alpha3 on windows 10)
>>>
>>> If I copy text containing a label (e.g. of an equation) and paste 
>>> into a (yellow) Note, the label is pasted unchanged. There is no 
>>> warning message about the label being changed to label-1. The label 
>>> in the Note can be referenced from within the Note or from within 
>>> another Note, but not from the text which gives a BROKEN Ref message. 
>>> I've just tried with LyX 2.3.5, and this is a regression.
>>>
>>> Andrew
>>
>> I can reproduce. I guess a question is what would be the best thing to 
>> do here. What is the exact issue with how it is in LyX 2.4.0dev? What 
>> would be a better way? Renaming? Showing as "Duplicate"? What is your 
>> use case?
>>
>> That the reference is marked as BROKEN when referenced from outside of 
>> the Note seems right, or?
>>
>> Daniel
> 
> Looking at how labels are used in notes and branches across 2.3.5 and 
> 2.4.0dev, I can see that this can get complicated.  The 2.3.5 behaviour 
> (renaming) seems clearest to me (and a little pedantic).
> 
> Andrew

I have never used branches, so pardon my ignorance. But isn't it there 
where being able to use duplicates might come in handy? Couldn't you 
have two branches with the same labels that are referenced outside of 
the branches? But as I said, I am not using branches, so maybe that is 
not a good use case.

Daniel




More information about the lyx-devel mailing list