From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Equation references in HTML export Date: Wed, 17 Jan 2018 07:35:19 +0000 Message-ID: <87wp0hgcp4.fsf@delle7240.chemeng.ucl.ac.uk> References: <87k1ww50uj.fsf@dell-desktop.WORKGROUP> <87shbj6zh5.fsf@nicolasgoaziou.fr> <87k1wughjp.fsf@dell-desktop.WORKGROUP> <87h8ru3eq8.fsf@nicolasgoaziou.fr> <87h8rtf3bo.fsf@dell-desktop.WORKGROUP> <87efmpy8u2.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebiFq-0001eZ-Nv for emacs-orgmode@gnu.org; Wed, 17 Jan 2018 02:35:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebiFn-0006kK-Hj for emacs-orgmode@gnu.org; Wed, 17 Jan 2018 02:35:26 -0500 Received: from mail-wr0-x234.google.com ([2a00:1450:400c:c0c::234]:41885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebiFn-0006ic-Aq for emacs-orgmode@gnu.org; Wed, 17 Jan 2018 02:35:23 -0500 Received: by mail-wr0-x234.google.com with SMTP id o7so17831270wro.8 for ; Tue, 16 Jan 2018 23:35:23 -0800 (PST) In-Reply-To: <87efmpy8u2.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 16 Jan 2018 19:09:09 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: Thibault Marin , emacs-org list --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tuesday, 16 Jan 2018 at 19:09, Nicolas Goaziou wrote: > Thibault Marin writes: [...] >> - In non-MathJax modes, I currently pre-process the latex environment to >> change equation environments to their * version, >> e.g. "\begin{equation}" -> "\begin{equation*}". This is to prevent >> the latex environment from adding its own labeling to the rendered >> image. This feels like a hack. Is there a better way to achieve >> this? > > No idea. I hope a LaTeX expert can chime it. Not an expert but I can chime in anyway. :-) To avoid having to hack the code, you could try using the mathtools package and ask it to only number equations that are referenced: \usepackage{mathtools}=20=20 \mathtoolsset{showonlyrefs}=20=20 This goes in the preamble for processing the snippets. Untested. =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.6-317-gc82c21 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWl78twAKCRDIkZPY//z2 fbGsAKCDKjej23phflCFEZR8EAHOyV4kpwCfUXmNtQ50wfJQ9ZGdk+1JNkHFpaA= =ptAH -----END PGP SIGNATURE----- --=-=-=--