aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArash Esbati2018-07-18 21:20:12 +0200
committerNoam Postavsky2018-07-22 10:53:50 -0400
commit8f3bca3ad513549af552b321aaca81e9e635857b (patch)
treec49940f44fbfe77e679b9b22d002fb075a3ad695
parent8217998b0d59ec491116250c6a10f46052a21ef8 (diff)
downloademacs-8f3bca3ad513549af552b321aaca81e9e635857b.tar.gz
emacs-8f3bca3ad513549af552b321aaca81e9e635857b.zip
Add \eqref to RefTeX's reference styles (Bug#32203)
* lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add entry for \eqref provided by amsmath.sty and bind it to "e" key.
-rw-r--r--lisp/textmodes/reftex-vars.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 11dbb8d5705..e7fe8ffe660 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -1030,7 +1030,9 @@ This is used to string together whole reference sets, like
1030 ("Hyperref" "hyperref" 1030 ("Hyperref" "hyperref"
1031 (("\\autoref" ?a) ("\\autopageref" ?u))) 1031 (("\\autoref" ?a) ("\\autopageref" ?u)))
1032 ("Cleveref" "cleveref" 1032 ("Cleveref" "cleveref"
1033 (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))) 1033 (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))
1034 ("AMSmath" "amsmath"
1035 (("\\eqref" ?e))))
1034 "Alist of reference styles. 1036 "Alist of reference styles.
1035Each element is a list of the style name, the name of the LaTeX 1037Each element is a list of the style name, the name of the LaTeX
1036package associated with the style or t for any package, and an 1038package associated with the style or t for any package, and an
@@ -1040,7 +1042,7 @@ the macro type is being prompted for. (See also
1040`reftex-ref-macro-prompt'.) The keys, represented as characters, 1042`reftex-ref-macro-prompt'.) The keys, represented as characters,
1041have to be unique." 1043have to be unique."
1042 :group 'reftex-referencing-labels 1044 :group 'reftex-referencing-labels
1043 :version "24.3" 1045 :version "27.1"
1044 :type '(alist :key-type (string :tag "Style name") 1046 :type '(alist :key-type (string :tag "Style name")
1045 :value-type (group (choice :tag "Package" 1047 :value-type (group (choice :tag "Package"
1046 (const :tag "Any package" t) 1048 (const :tag "Any package" t)