According to the manual:
"When labeling single equations (created using Insert -> Mathematics -> Equation), the recommended place is at the start inside the equation. When labeling multiple equations (created using Insert -> Mathematics -> Equations), you must put the labels just behind the equation numbers."
Thus, I assume the reason is the internal workings of TeXmacs. Needless to say, it is certainly confusing (especially for newcomers) to have different label placements for equations and equation arrays. I don’t know know how hard it would be to unify the behavior, nor am I a programmer who would be able to implement such a change. Maybe some of the developers could say something about this?
With regard to the label flags, the situation is even more problematic than Jorge noted. In the multiple-equations environment you will see only part of the label flag if the label text is longer than the remaining space on the paper/white canvas shown — see enclosed screenshot. It would be perhaps better if the flags were semi-transparent and drawn leftward from the flags “stick” (flag origin) in the case of the label being placed after the equation number. Or at least the whole application window width could be used to display the flag, as opposed to only using the paper width, as is the case now.
On 18 Sep 2018, at 00:05, Jorge Fernández de Cossío Díaz <address@hidden
Thanks. I like having the label flags. However the recommendation is to place the labels at the beginning of equations, anybody knows why? The problem is that the label flag then hides part of the equation.
Peter's suggestion to show labels in blue can be set using Documents > Informative flags > Detailed
The 'Error messages' window will be brought up with the menu Documents > Refresh > All
On 14 Sep 2018, at 21:58, Jorge Fernández de Cossío Díaz <address@hidden
Yes, I see the warning.
Another question. When I rename a label, references to it are automatically updated?
I think not. Is there a way to rename a label and also have all references to it automatically updated?
I am not aware of such functionality, but it would definitely be very convenient. :-)
As a possible mitigation to this, try to use the replace functionality, perhaps it can search & replace also within labels and references... (I am not sure and I have no way ro try now).
A sidenote: there is a way to turn on showing labels as blue flags with the label names displayed. That way one has at least an overview of what the labels are, which is convenient if a document contains many of them. Also note that tab completion works on referencing labels within \ref, so you can cycle through the labels within the document even if you don't remember them.
As far as I remember there is a warning (window with errors) displayed if you open a file which has duplicate labels - the warnings say that numbers assigned to equations were changed, which happens if a duplicate label is encountered in a file. From this I would assume that the reference then references the last occasion of a duplicate label but don’t take my word for it.
On 14 Sep 2018, at 16:02, Jorge Fernández de Cossío Díaz <address@hidden
When I have multiple labels with the same id, and a reference pointing to this id, where does the reference actually point? Is this defined?
Coming from Lyx, I would at least expect a warning. In a large document it might be hard to realize that you are using the same label id more than once.
Copying and pasting a label won't change the label. That is sensible design decision given that label assignments are always done manually.
You should simply modify one of the two labels by hand, and check the references.
> When I copy/paste an equation with a label, the label is copied and I end up with two equations with the same label. Shouldn't this be an error? What happens to the references in my document that point to this label?