GNU bug report logs - #32203
[PATCH] Support \eqref in RefTeX reference styles

Previous Next

Package: emacs;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Wed, 18 Jul 2018 19:40:01 UTC

Severity: normal

Tags: fixed, patch

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32203 in the body.
You can then email your comments to 32203 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32203; Package emacs. (Wed, 18 Jul 2018 19:40:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash Esbati <arash <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 18 Jul 2018 19:40:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Support \eqref in RefTeX reference styles
Date: Wed, 18 Jul 2018 21:37:17 +0200
[Message part 1 (text/plain, inline)]
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

[0001-Add-eqref-to-RefTeX-s-reference-styles.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32203; Package emacs. (Fri, 20 Jul 2018 01:53:01 GMT) Full text and rfc822 format available.

Message #8 received at 32203 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: 32203 <at> debbugs.gnu.org
Subject: Re: bug#32203: [PATCH] Support \eqref in RefTeX reference styles
Date: Thu, 19 Jul 2018 21:52:28 -0400
Arash Esbati <arash <at> 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?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32203; Package emacs. (Fri, 20 Jul 2018 20:56:02 GMT) Full text and rfc822 format available.

Message #11 received at 32203 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 32203 <at> debbugs.gnu.org
Subject: Re: bug#32203: [PATCH] Support \eqref in RefTeX reference styles
Date: Fri, 20 Jul 2018 22:51:15 +0200
[Message part 1 (text/plain, inline)]
Noam Postavsky <npostavs <at> gmail.com> writes:

> Arash Esbati <arash <at> 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
[0001-Add-eqref-to-RefTeX-s-reference-styles.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32203; Package emacs. (Sun, 22 Jul 2018 15:11:02 GMT) Full text and rfc822 format available.

Message #14 received at 32203 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: 32203 <at> debbugs.gnu.org
Subject: Re: bug#32203: [PATCH] Support \eqref in RefTeX reference styles
Date: Sun, 22 Jul 2018 11:10:11 -0400
tags 32203 fixed
close 32203 27.1
quit

Arash Esbati <arash <at> 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




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 22 Jul 2018 15:11:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 32203 <at> debbugs.gnu.org and Arash Esbati <arash <at> gnu.org> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 22 Jul 2018 15:11:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Aug 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.