Discussion:
About inserting a math environment.
Adam Johnson
2005-02-08 18:13:30 UTC
Permalink
I don't like the feature of inserting an equation with a label:
It will insert a numbered default equation label as \label{esq.:1}, etc. It
is not good because the label gives the equation no meaning. When there are
a bunch of equations, it is troublesome for being referred.
If I manually change {esq.:1} to other label, I'm not sure whether the label
is used or not (then I need check the duplication after I change the label).
How can I customize some variables such that when I insert an equation, it
will still ask me for the label instead of inserting a default label? (At
this step, the Emacs auto-completion will tell me which label is used.)
Thanks.


BTW: I'm using AUCTeX 11.55
MikTeX 2.4
CVS Emacs 21.3.50.1
Windows XP.
--------
Best Regards,
Adam
Ralf Angeli
2005-02-08 18:30:36 UTC
Permalink
Post by Adam Johnson
It will insert a numbered default equation label as \label{esq.:1}, etc. It
is not good because the label gives the equation no meaning. When there are
a bunch of equations, it is troublesome for being referred.
If I manually change {esq.:1} to other label, I'm not sure whether the label
is used or not (then I need check the duplication after I change the label).
How can I customize some variables such that when I insert an equation, it
will still ask me for the label instead of inserting a default label?
Read the RefTeX documentation, especially the sections about creating
labels and interaction between RefTeX and AUCTeX.
--
Ralf
Adam Johnson
2005-02-11 16:12:38 UTC
Permalink
Thanks. I just had the time to read the document.
It came from:
(setq reftex-plug-into-AUCTeX t),
which I just added into my .emacs.

After I disable it, it works fine now.



----- Original Message -----
From: "Ralf Angeli" <***@iwi.uni-sb.de>
To: "Adam Johnson" <***@hotmail.com>
Cc: "AUCTeX List" <auc-***@sunsite.dk>
Sent: Tuesday, February 08, 2005 1:30 PM
Subject: Re: About inserting a math environment.
Post by Ralf Angeli
Post by Adam Johnson
It will insert a numbered default equation label as \label{esq.:1}, etc.
It
is not good because the label gives the equation no meaning. When there are
a bunch of equations, it is troublesome for being referred.
If I manually change {esq.:1} to other label, I'm not sure whether the label
is used or not (then I need check the duplication after I change the label).
How can I customize some variables such that when I insert an equation, it
will still ask me for the label instead of inserting a default label?
Read the RefTeX documentation, especially the sections about creating
labels and interaction between RefTeX and AUCTeX.
--
Ralf
Ralf Angeli
2005-02-11 16:39:47 UTC
Permalink
* Adam Johnson (2005-02-11) writes:

[Quoting repaired]
Post by Adam Johnson
Post by Ralf Angeli
I don't like the feature of inserting an equation with a label: It
will insert a numbered default equation label as \label{esq.:1},
etc.
[...]
Post by Adam Johnson
Post by Ralf Angeli
Read the RefTeX documentation, especially the sections about creating
labels and interaction between RefTeX and AUCTeX.
Thanks. I just had the time to read the document.
(setq reftex-plug-into-AUCTeX t),
which I just added into my .emacs.
After I disable it, it works fine now.
I hope you know what you are doing. Customizing the variable
`reftex-insert-label-flags' as the RefTeX manual suggests would
probably be a better idea in case you want AUCTeX to interact with
RefTeX and vice versa.
--
Ralf
David Kastrup
2005-02-11 16:49:00 UTC
Permalink
Post by Adam Johnson
Thanks. I just had the time to read the document.
(setq reftex-plug-into-AUCTeX t),
which I just added into my .emacs.
After I disable it, it works fine now.
I find that it costs me much too much concentration to think of labels
myself, and managing to insert the correct one is dead-easy using
RefTeX's C-c ) command. Have you tried it already?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Adam Johnson
2005-02-11 17:11:22 UTC
Permalink
----- Original Message -----
Post by Ralf Angeli
I hope you know what you are doing. Customizing the variable
`reftex-insert-label-flags' as the RefTeX manual suggests would
probably be a better idea in case you want AUCTeX to interact with
RefTeX and vice versa.
Thanks. I should spend some time to read the material more carefully. This
is a MUCH better way to solve this problem.
----- Original Message -----
Post by Ralf Angeli
I find that it costs me much too much concentration to think of labels
myself, and managing to insert the correct one is dead-easy using
RefTeX's C-c ) command. Have you tried it already?
Thanks too. I keep using this command, however, I usually gave a label by
myself when it promped for a label. I'd like try the reftex feature.
Post by Ralf Angeli
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
David Kastrup
2005-02-11 17:18:45 UTC
Permalink
Post by Adam Johnson
----- Original Message -----
Post by David Kastrup
I find that it costs me much too much concentration to think of labels
myself, and managing to insert the correct one is dead-easy using
RefTeX's C-c ) command. Have you tried it already?
Thanks too. I keep using this command, however, I usually gave a
label by myself when it promped for a label. I'd like try the reftex
feature.
I said C-c ), not C-c (. I am talking about referencing a label, not
inserting it.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Adam Johnson
2005-02-11 17:45:34 UTC
Permalink
Post by David Kastrup
I said C-c ), not C-c (. I am talking about referencing a label, not
inserting it.
In fact I keep using C-c ) and I like it very much. I barely use C-c (. I
mean "prompt" because when I insert an environment using AUCTeX, it will
prompt for a label if necessary.

However, I'm trying to avoid a simple label as {eq:12}, because I need
exchange the source files with our group. Most of them don't use Emacs, so
simple labels may be very troublesome for them.

Moreover, meaningful labels can give me a quick position of the equation in
a file. If I change the order of two equations, then {eq: 28} will go
before {eq:12}. The exchange will not affect the reference of the formulas
in a file. However, maybe it will make my source file look very
disorganized if such exchanges happen several times.
Post by David Kastrup
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
David Kastrup
2005-02-11 17:58:30 UTC
Permalink
Post by Adam Johnson
Post by David Kastrup
I said C-c ), not C-c (. I am talking about referencing a label, not
inserting it.
In fact I keep using C-c ) and I like it very much. I barely use C-c
(. I mean "prompt" because when I insert an environment using AUCTeX,
it will prompt for a label if necessary.
However, I'm trying to avoid a simple label as {eq:12}, because I need
exchange the source files with our group. Most of them don't use
Emacs, so simple labels may be very troublesome for them.
Moreover, meaningful labels can give me a quick position of the
28} will go before {eq:12}. The exchange will not affect the
reference of the formulas in a file. However, maybe it will make my
source file look very disorganized if such exchanges happen several
times.
M-x reftex-renumber-simple-labels RET
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Dirk Van Hertem
2005-02-11 18:06:37 UTC
Permalink
Post by David Kastrup
Post by Adam Johnson
Post by David Kastrup
I said C-c ), not C-c (. I am talking about referencing a label, not
inserting it.
In fact I keep using C-c ) and I like it very much. I barely use C-c
(. I mean "prompt" because when I insert an environment using AUCTeX,
it will prompt for a label if necessary.
However, I'm trying to avoid a simple label as {eq:12}, because I need
exchange the source files with our group. Most of them don't use
Emacs, so simple labels may be very troublesome for them.
Moreover, meaningful labels can give me a quick position of the
28} will go before {eq:12}. The exchange will not affect the
reference of the formulas in a file. However, maybe it will make my
source file look very disorganized if such exchanges happen several
times.
M-x reftex-renumber-simple-labels RET
aha, now that's usefull :)

I never used the equation numbering because of this simple numbering,
I've tried this, and probably I'll use it from now on ;)

Thanks,

Dirk
Adam Johnson
2005-02-11 18:12:42 UTC
Permalink
Post by Dirk Van Hertem
aha, now that's usefull :)
I never used the equation numbering because of this simple numbering, I've
tried this, and probably I'll use it from now on ;)
The following comes from the help file of reftex:
"This command should be used with care, in particular in multifile
documents. You should not use it if another document refers to this one with
the xr package."

--------
Best Regards,
Adam

Loading...