From debbugs-submit-bounces@debbugs.gnu.org Fri May 23 09:54:00 2025 Received: (at submit) by debbugs.gnu.org; 23 May 2025 13:54:00 +0000 Received: from localhost ([127.0.0.1]:47469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uISqV-0005Yf-N6 for submit@debbugs.gnu.org; Fri, 23 May 2025 09:54:00 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56088) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uISBd-0001lg-2K for submit@debbugs.gnu.org; Fri, 23 May 2025 09:11:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uISBW-00047j-Tx for bug-auctex@gnu.org; Fri, 23 May 2025 09:11:38 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uISBU-0006sH-O9 for bug-auctex@gnu.org; Fri, 23 May 2025 09:11:38 -0400 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3a36e950e41so3744386f8f.0 for ; Fri, 23 May 2025 06:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748005893; x=1748610693; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ZL2d+xYUOfeCtwpFhPaYLJNYbnqzA0ddBjNYOI7YJ5c=; b=I5uncvQY7T7zda2g+UE7HmlQcZwUSUmTiCwjeavn+lqUTUs4ERP7aooY7NttCrkMBz 00RFlkQISw90CjLl3IUe0fRRvkx6ibed9TMlDJ5E12VrQ63SaemCZIh/cYFaTqH8UrhD ZR6GOq0QQx8Pb1MMSRIXted3Ucjt39pQ4cj4cbIfMfnjlQCWGpWMf+Nz8RIqs6Yz/kHA EWphAv9FGoIgXxIs5ojE1fVjWbD49HRBYNb/RfKk86JIVHeNvqfqVSGagK02/K6W1rRF QDhhH7vNge/f2hJuDA9PMXi+Bk6LUvxfPjg13zHjJPOkb/8a+2C14s4A1mUqWKq2nVQ1 cQvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748005893; x=1748610693; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZL2d+xYUOfeCtwpFhPaYLJNYbnqzA0ddBjNYOI7YJ5c=; b=wHNNzPb3QniwgQ1odrQ1ONh5FOsdxW/dkPCceEXwxfDG9q3QQzhySAG4MZchWshD2i 6O4RJPHFJiKcvO91dZuvUW5GFgRenszuHXyJzaFrfM4ga6vJwfzmGNeXZOq5u6MyrCjI Txhvptg1WkYfCsXYfngyC7OIi8HCrWv9p1gXsTQZ3v2B7luDBACfFPRU2Nt4gyc+7Z9X QJvPvXituOWtI5jbyflWKpL/ObpGeNqDRz0/MrHN/j2pJBU7O2od2KlFhmc25xhDVqWA kLuz1+oSfQCQG8hMwdgjkQXx8zqR4/Sy/FKPJ04hEQvmVgLA04Hj+rvM28zzwADG23TL LFcg== X-Gm-Message-State: AOJu0Yw3AVF+4b6v2Tvs8uqeC39apvYCKPgy+vkc+UVeDIX0omx/wQUj AjVLsus9XUeZsA1rvQUB02tqhZiPh7SEnPIz9gY1yV7aTxKJgUiMjqvPnpPmcx6tFiEo4CGB+Cw o2kL2HoPVPauUhF+oUl2bYnDkeWjD9fd/rs6YlR4= X-Gm-Gg: ASbGncvALC6dJmo3pK4c2uUgrDmZH4nxcmLS0ivwDxnKmxcWFzXKKzt82QyI47ZAUCc 4ayy/TaY2NCtlR66AGJ/jr53DlyFvxIKl+JEsGP+mBXbl/gX0epBJzO0qB9ADKsEEfcKck+s8Cu uiNIkvIhK0A2CBfR25+pVGHHItWswq9x/JJMo= X-Google-Smtp-Source: AGHT+IGM5wTixKpyaOdkrFSqQBSU/nba1FUfToQfFBO3sVQ2nPvb1Cqko3dPEJZ6RHA5oV0wPjzSMrbE+PYVUt+2Zig= X-Received: by 2002:a5d:64ee:0:b0:3a0:b72a:b36 with SMTP id ffacd0b85a97d-3a35c84bd82mr25564025f8f.36.1748005893543; Fri, 23 May 2025 06:11:33 -0700 (PDT) MIME-Version: 1.0 From: "Pichler, Alois" Date: Fri, 23 May 2025 15:10:32 +0200 X-Gm-Features: AX0GCFulv9Tuipu9JLNO-PqlrXa1amOSudVSSMHtmVxutjLxkQE-DW4bN_SImnM Message-ID: Subject: preview To: bug-auctex@gnu.org Content-Type: multipart/alternative; boundary="000000000000599c7b0635cd5640" Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=alois.pi@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 23 May 2025 09:53:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) --000000000000599c7b0635cd5640 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The LaTeX-package =E2=80=98mathtools=E2=80=99 has the useful setting =E2=80= =98showonlyrefs=E2=80=99 to suppress equations numbers, which are not referenced in the text. AUCTeX=E2=80=99s preview currently ignores this setting. Here is a minimal = example: \usepackage{mathtools} \mathtoolsset{showonlyrefs} \begin{equation}\label{eq:1} x=3D3 % <-- preview will display =E2=80=9Cx=3D3=E2=80=9D, not =E2= =80=9Cx=3D3 (1)=E2=80=9D, etc. \end{equation} In~\eqref{eq:1}, ... % equation will be numbered, because referenced here Thanks and regards, Alois --000000000000599c7b0635cd5640 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The LaTeX-package =E2=80=98mathtools=E2=80=99 has the= useful setting =E2=80=98showonlyrefs=E2=80=99 to suppress equations number= s, which are not referenced in the text.
AUCTeX=E2=80=99s preview= currently ignores this setting. Here is a minimal example:
\usepackage{mathtools}
\mathtoolsset{showonlyrefs}

\begin{equation}\label{eq:1}
   x=3D3   %   <--   preview will display =E2=80=9Cx=3D3=E2=80=9D, not =
=E2=80=9Cx=3D3   (1)=E2=80=9D, etc.
\end{equation}
In~\eqref{eq:1}, ... % equation will be numbered, because referenced here
Thanks and regards,
Alois<= /div>
--000000000000599c7b0635cd5640-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 26 08:17:43 2025 Received: (at 78566) by debbugs.gnu.org; 26 May 2025 12:17:43 +0000 Received: from localhost ([127.0.0.1]:55654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJWlz-00021g-Bs for submit@debbugs.gnu.org; Mon, 26 May 2025 08:17:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58176) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uJWlu-00020v-Fn for 78566@debbugs.gnu.org; Mon, 26 May 2025 08:17:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uJWlo-0008Uv-GM; Mon, 26 May 2025 08:17:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=JFjzI06N0IZvG5i+zvezszcc8qYTCexxFTSwBu+2elU=; b=EJXW1KYxphy1xGnfyysM vuGc3LDrmp4UI+HIjVxeZzkW0L6BfYlJ8h9wGBzJ2AHDDhduVcXk/8cGrF791pu+77jv3uQCBtDQl /pVbF0wYXoF188RaH3PI1OHqjc33EyUx/Ed46QSGiRGTipDxYo2CllOf4Vd3pR1x6KdWJMwHs8tW3 b2F6LMwWwF0Xn3kkjUi/FZnVL5nEuLOOiDbG8cmnXjndtzAy8f/tjocgvnN+CeSzWuyHrKI5K8AKX CJgG8KjW3i3RBAH2toB5Rb7eClEjDb8Jcd30S8d/HKm4/rdgvM92qwEuNUHf+b7kXGWJ0O+WPxZcV onHlkDmR6z38gA==; From: Arash Esbati To: "Pichler, Alois" Subject: Re: bug#78566: preview In-Reply-To: References: Date: Mon, 26 May 2025 14:17:24 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78566 Cc: 78566@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Pichler, Alois" writes: > The LaTeX-package =E2=80=98mathtools=E2=80=99 has the useful setting =E2= =80=98showonlyrefs=E2=80=99 to > suppress equations numbers, which are not referenced in the text. > AUCTeX=E2=80=99s preview currently ignores this setting. Here is a minima= l example: > \usepackage{mathtools} > \mathtoolsset{showonlyrefs} > > \begin{equation}\label{eq:1} > x=3D3 % <-- preview will display =E2=80=9Cx=3D3=E2=80=9D, not = =E2=80=9Cx=3D3 (1)=E2=80=9D, 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