From: Arash Esbati <arash@gnu.org>
To: 32203@debbugs.gnu.org
Subject: bug#32203: [PATCH] Support \eqref in RefTeX reference styles
Date: Wed, 18 Jul 2018 21:37:17 +0200 [thread overview]
Message-ID: <86fu0gjpxu.fsf@gnu.org> (raw)
[-- 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
next reply other threads:[~2018-07-18 19:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 19:37 Arash Esbati [this message]
2018-07-20 1:52 ` bug#32203: [PATCH] Support \eqref in RefTeX reference styles Noam Postavsky
2018-07-20 20:51 ` Arash Esbati
2018-07-22 15:10 ` Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fu0gjpxu.fsf@gnu.org \
--to=arash@gnu.org \
--cc=32203@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.