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

* bug#32203: [PATCH] Support \eqref in RefTeX reference styles
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2018-07-20  1:52 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 32203

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?





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

* bug#32203: [PATCH] Support \eqref in RefTeX reference styles
  2018-07-20  1:52 ` Noam Postavsky
@ 2018-07-20 20:51   ` Arash Esbati
  2018-07-22 15:10     ` Noam Postavsky
  0 siblings, 1 reply; 4+ messages in thread
From: Arash Esbati @ 2018-07-20 20:51 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 32203

[-- 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


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

* bug#32203: [PATCH] Support \eqref in RefTeX reference styles
  2018-07-20 20:51   ` Arash Esbati
@ 2018-07-22 15:10     ` Noam Postavsky
  0 siblings, 0 replies; 4+ messages in thread
From: Noam Postavsky @ 2018-07-22 15:10 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 32203

tags 32203 fixed
close 32203 27.1
quit

Arash Esbati <arash@gnu.org> writes:

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

Okay, nobody else commented, and the patch seems straightforward enough,
pushed to master.

[1: 8f3bca3ad5]: 2018-07-22 10:53:50 -0400
  Add \eqref to RefTeX's reference styles (Bug#32203)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=8f3bca3ad513549af552b321aaca81e9e635857b





^ permalink raw reply	[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.