From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Equation references in HTML export Date: Tue, 09 Jan 2018 22:27:11 +0100 Message-ID: <87h8ru3eq8.fsf@nicolasgoaziou.fr> References: <87k1ww50uj.fsf@dell-desktop.WORKGROUP> <87shbj6zh5.fsf@nicolasgoaziou.fr> <87k1wughjp.fsf@dell-desktop.WORKGROUP> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42815) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZ1QR-0007TW-Ft for emacs-orgmode@gnu.org; Tue, 09 Jan 2018 16:27:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eZ1QQ-0007tU-Oo for emacs-orgmode@gnu.org; Tue, 09 Jan 2018 16:27:15 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:41793) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eZ1QQ-0007s3-I4 for emacs-orgmode@gnu.org; Tue, 09 Jan 2018 16:27:14 -0500 In-Reply-To: <87k1wughjp.fsf@dell-desktop.WORKGROUP> (Thibault Marin's message of "Sun, 07 Jan 2018 03:11:06 -0600") 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: Thibault Marin Cc: emacs-org list Hello, Thibault Marin writes: > To make sure I understand the desired HTML output, do you mean that > instead of producing this HTML: > ,---- > | \begin{align} > | \label{eq:orgbfedefe} > | 1 + 1 = 0 > | \end{align} > `---- > and relying on MathJax to manage references, we should produce something > like the following? > ,---- > |
> | \begin{align} > | 1 + 1 = 0 > | \end{align} > | > |
> `---- > > Am I understanding correctly? That's the idea, yes. > The advantage of this approach is that it is consistent with how the > other types of references (figures, source blocks, etc.) are managed and > it should work with the verbatim mode. > > I have a few questions about the "caption" (i.e. the equation number): > > 1. Where should it be placed? In a `' tag like it is done for > figures? Ideally, I would like to have the caption (i.e. the > equation number) on the right side of the equation, as it is done in > LaTeX, should this be done with CSS? Should there be a user option > for the position of the caption? I'm not sure. Have you checked how captions in other parts of "ox-html.el"? > 2. Should we disable MathJax's equation numbering and replace it with > ours? I am afraid this may break the setup of users already relying > on MathJax to label and reference equations. You may be right. In this case, we may use \eqref if MathJax is going to be used (like your initial patch did), and do the above otherwise. > 3. Should there be an option to customize the formatting of the equation > number, both on the right of the equation itself and in links > (e.g. wrap the number between parentheses, as `\eqref' dose)? I don't think other captions allow this in "ox-html.el". WDYT? Regards, -- Nicolas Goaziou 0x80A93738