Hi,
By the way (at least on my computer) on Windows 10 this a
"copy/paste" sequence with flags produces the same warning but then
TeXmacs crashes systematically...
More general, any "warning" on Windows produce TeXmacs crash... at
least on my computer.
Alexandre
Le 9/17/2018 à 9:03 AM, Basile Audoly a
écrit :
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
Le 14 sept. 2018 à 22:25, Peter Rapčan <address@hidden> a
écrit :
On 14 Sep 2018, at 21:58, Jorge Fernández de Cossío
Díaz <address@hidden>
wrote:
Yes, I see the warning.
Another question. When I rename a
label, references to it are automatically
updated?
No.
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.
Peter
On Fri, Sep 14, 2018 at
10:38 AM Peter Rapčan <address@hidden>
wrote:
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.
Peter.
On 14 Sep 2018, at 16:02,
Jorge Fernández de Cossío Díaz <address@hidden>
wrote:
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.
On Fri, Sep
14, 2018 at 9:50 AM Basile Audoly
<address@hidden>
wrote:
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.
Basile.
> 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?
|