auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

spaces in labels


From: Sigurd Angenent
Subject: spaces in labels
Date: Mon, 9 Dec 2024 10:26:51 -0600

Hello,
First of all thank you for maintaining the very useful reftex package.

A while ago coauthors of mine discovered that LaTeX actually allows spaces in labels and since then they have gotten addicted to this feature.  

Reftex has a function (reftex-view-crossref) that searches for the defining \label{bla bla bla} statement from any \ref{bla bla bla} or \eqref{bla bla bla} statement.  This is very useful except it doesn't work with labels that have spaces.  

On my computer I looked in the file reftex-dcr.el and deleted the space from the string on line 56 in the statement          
(key (reftex-this-word "^{}%\n\r,\t"))
I saved and byte compiled the file and it now seems to work on labels with spaces for me.  I don't know how many other problems I have created by doing this, but I will find out, I guess.

Since these files were located in /usr/share/emacs/29.4/lisp/textmodes I had to sudo a fair amount of things, which made me uncomfortable.  There ought to be a way to do this in my .emacs file.  Or if reftex were a package in my ~/.emacs.d directory?

Perhaps this string could be a variable that the user could customize?  This would require more elisp than I know--I can't even tell if this is easy or not.

Anyway, thanks again,
Sigurd Angenent
Madison, Wisconsin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]