GNU bug report logs - #78566
preview

Previous Next

Package: auctex;

Reported by: "Pichler, Alois" <alois.pi <at> gmail.com>

Date: Fri, 23 May 2025 13:54:02 UTC

Severity: normal

To reply to this bug, email your comments to 78566 AT debbugs.gnu.org.

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-auctex <at> gnu.org:
bug#78566; Package auctex. (Fri, 23 May 2025 13:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Pichler, Alois" <alois.pi <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Fri, 23 May 2025 13:54:02 GMT) Full text and rfc822 format available.

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

From: "Pichler, Alois" <alois.pi <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: preview
Date: Fri, 23 May 2025 15:10:32 +0200
[Message part 1 (text/plain, inline)]
The LaTeX-package ‘mathtools’ has the useful setting ‘showonlyrefs’ to
suppress equations numbers, which are not referenced in the text.
AUCTeX’s preview currently ignores this setting. Here is a minimal example:

\usepackage{mathtools}
\mathtoolsset{showonlyrefs}

\begin{equation}\label{eq:1}
   x=3   %   <--   preview will display “x=3”, not “x=3   (1)”, etc.
\end{equation}
In~\eqref{eq:1}, ... % equation will be numbered, because referenced here

Thanks and regards,
Alois
[Message part 2 (text/html, inline)]

Information forwarded to bug-auctex <at> gnu.org:
bug#78566; Package auctex. (Mon, 26 May 2025 12:18:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: "Pichler, Alois" <alois.pi <at> gmail.com>
Cc: 78566 <at> debbugs.gnu.org
Subject: Re: bug#78566: preview
Date: Mon, 26 May 2025 14:17:24 +0200
"Pichler, Alois" <alois.pi <at> gmail.com> writes:

> The LaTeX-package ‘mathtools’ has the useful setting ‘showonlyrefs’ to
> suppress equations numbers, which are not referenced in the text.
> AUCTeX’s preview currently ignores this setting. Here is a minimal example:
> \usepackage{mathtools}
> \mathtoolsset{showonlyrefs}
>
> \begin{equation}\label{eq:1}
>    x=3   %   <--   preview will display “x=3”, not “x=3   (1)”, etc.
> \end{equation}
> In~\eqref{eq:1}, ... % equation will be numbered, because referenced here

I confirm the behavior you describe.  I'm not sure if it is possible to
easily fix it.  mathtools.sty seems to hack LaTeX internals do achieve
the behavior, since it needs some additional LaTeX runs to get
everything right (I only had a brief look at the source).  I fear this
will end up as "wontfix" if others don't have a good idea.

Best, Arash




This bug report was last modified 18 days ago.

Previous Next


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