all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#32203: [PATCH] Support \eqref in RefTeX reference styles
@ 2018-07-18 19:37 Arash Esbati
  2018-07-20  1:52 ` Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: Arash Esbati @ 2018-07-18 19:37 UTC (permalink / raw)
  To: 32203

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

Dear all,

please find attached a patch which adds support for \eqref provided by
amsmath.sty to RefTeX reference styles.

I've already patched AUCTeX to support this, but I think non-AUCTeX
users can also benefit from this.

I would be grateful if somebody installs this on master.

TIA.  Best, Arash


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-eqref-to-RefTeX-s-reference-styles.patch --]
[-- Type: text/x-patch, Size: 1159 bytes --]

From 4932fe04f2b9344506eb9c369149160023ff33fc Mon Sep 17 00:00:00 2001
From: Arash Esbati <arash@gnu.org>
Date: Wed, 18 Jul 2018 21:20:12 +0200
Subject: [PATCH] Add \eqref to RefTeX's reference styles

* lisp/textmodes/reftex-vars.el (reftex-ref-style-alist): Add entry
for \eqref provided by amsmath.sty and bind it to "e" key.
---
 lisp/textmodes/reftex-vars.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 11dbb8d570..5afea881a1 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
     ("Hyperref" "hyperref"
      (("\\autoref" ?a) ("\\autopageref" ?u)))
     ("Cleveref" "cleveref"
-     (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D))))
+     (("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))
+    ("AMSmath" "amsmath"
+     (("\\eqref" ?e))))
   "Alist of reference styles.
 Each element is a list of the style name, the name of the LaTeX
 package associated with the style or t for any package, and an
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-22 15:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 19:37 bug#32203: [PATCH] Support \eqref in RefTeX reference styles Arash Esbati
2018-07-20  1:52 ` Noam Postavsky
2018-07-20 20:51   ` Arash Esbati
2018-07-22 15:10     ` Noam Postavsky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.