unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Arash Esbati <arash@gnu.org>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 32203@debbugs.gnu.org
Subject: bug#32203: [PATCH] Support \eqref in RefTeX reference styles
Date: Fri, 20 Jul 2018 22:51:15 +0200	[thread overview]
Message-ID: <86h8ktk4vw.fsf@gnu.org> (raw)
In-Reply-To: <87601a7jxf.fsf@gmail.com> (Noam Postavsky's message of "Thu, 19 Jul 2018 21:52:28 -0400")

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

Noam Postavsky <npostavs@gmail.com> writes:

> Arash Esbati <arash@gnu.org> writes:
>
>> 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.
>
>> --- 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
>
> I guess the :version should be updated here too?

Thanks for looking at this; indeed I missed that.  Next try is attached.

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: 1533 bytes --]

From 2e7421f58b835483fe67dd55513c32ac310bd20e 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 | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 11dbb8d570..e7fe8ffe66 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
@@ -1040,7 +1042,7 @@ the macro type is being prompted for.  (See also
 `reftex-ref-macro-prompt'.)  The keys, represented as characters,
 have to be unique."
   :group 'reftex-referencing-labels
-  :version "24.3"
+  :version "27.1"
   :type '(alist :key-type (string :tag "Style name")
 		:value-type (group (choice :tag "Package"
 					   (const :tag "Any package" t)
-- 
2.18.0


  reply	other threads:[~2018-07-20 20:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h8ktk4vw.fsf@gnu.org \
    --to=arash@gnu.org \
    --cc=32203@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).