GNU bug report logs - #36111
Support cleveref labels in AUCTeX and RefTeX

Previous Next

Package: auctex;

Reported by: Ryan Kavanagh <rak <at> debian.org>

Date: Thu, 6 Jun 2019 02:33:02 UTC

Severity: wishlist

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Ryan Kavanagh <rak <at> debian.org>
Subject: bug#36111: closed (Re: bug#36111: Support cleveref labels in
 AUCTeX and RefTeX)
Date: Sat, 15 Jun 2019 20:02:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#36111: Support cleveref labels in AUCTeX and RefTeX

which was filed against the auctex package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 36111 <at> debbugs.gnu.org.

-- 
36111: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36111
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Arash Esbati <arash <at> gnu.org>
To: Ryan Kavanagh <rak <at> debian.org>
Cc: 36111-done <at> debbugs.gnu.org
Subject: Re: bug#36111: Support cleveref labels in AUCTeX and RefTeX
Date: Sat, 15 Jun 2019 22:01:30 +0200
Ryan Kavanagh <rak <at> debian.org> writes:

> The new cleveref.el you provided fixes the bug. Thanks!

Thanks for reporting this bug and testing the fix.  I've pushed a change
to AUCTeX repo -- closing this one.

Best, Arash

[Message part 3 (message/rfc822, inline)]
From: Ryan Kavanagh <rak <at> debian.org>
To: submit <at> debbugs.gnu.org
Subject: Support cleveref labels in AUCTeX and RefTeX
Date: Wed, 5 Jun 2019 20:29:08 -0400
[Message part 4 (text/plain, inline)]
Package: auctex
Severity: wishlist

I use the cleveref package, which allows annotating \label commands with
an optional argument. Unfortunately, this prevents both AUCTeX and
RefTeX from detecting those labels.

To illustrate, here is some LaTeX code from which AUCTeX and RefTeX fail
to extract the label "eq:23":

    \usepackage{cleveref}
    \crefname{diagram}{diagram}{diagrams}
    % ...
    \begin{equation}
      \label[diagram]{eq:23}
      1 = 1
    \end{equation}

This is problematic, because the function reftex-label will reuse the
label "eq:23".

I am not sufficiently familiar with emacs lisp to submit a patch, but I
think I have found some of the places that should be updated:

* The variable LaTeX-auto-label-regexp-list in latex.el

* The function reftex-parse-from-file hardcodes the prefix "\\label{".
  Perhaps this could be a customizable regexp?

More details can be found in this question:
https://tex.stackexchange.com/q/494337/6128 .

Please add support for cleveref labels to AUCTeX and RefTeX.

Best,
Ryan

-- 
|)|/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac     |      BD95 8F7B F8FC 4A11 C97A
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 5 years and 344 days ago.

Previous Next


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