[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reftex-amsmath-eqref and other oddities
From: |
Uwe Brauer |
Subject: |
reftex-amsmath-eqref and other oddities |
Date: |
Mon, 02 Dec 2019 15:24:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Hi
I just found out there exists the function reftex-amsmath-eqref which in
my case inserts
(\eqref{eq:testshowonly:2})
which is not correct, it should be
\eqref{eq:testshowonly:2}
I tried to look up its definition but the docstring says
,----
| reftex-amsmath-eqref is an interactive Lisp function in
| ‘reftex-ref.el’.
|
| (reftex-amsmath-eqref)
|
| Insert a reference using the ‘\eqref’ macro from the amsmath package.
|
| This is a generated function.
`----
And indeed in this file reftex-ref there is no explicit definition.
It also seems impossible in reftex-label-alist
to have the keyword equation associated to the insertion of \ref or
\eqref as in
(setq reftex-label-alist
'(("equation" ?e "eq:%f:" "~(\\ref{%s})" t
("Equation" "Eq." "Eqn." "Gleichung" "Gl."))
("equation" ?g "eq:%f:" "~\\eqref{%s}" t
("Equation" "Eq." "Eqn." "Gleichung" "Gl."))))
It seems not possible.
Anybody has an idea I would like to have the possibility to insert
either \ref or \eqref depending on the file I consider.
Thanks
Uwe Brauer
smime.p7s
Description: S/MIME cryptographic signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- reftex-amsmath-eqref and other oddities,
Uwe Brauer <=