From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: numbered equations in html export Date: Tue, 01 Jul 2014 00:19:43 -0400 Message-ID: <877g3xd82k.fsf@gmail.com> References: <87zjgucq06.fsf@gmail.com> <87oaxano52.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1pYh-0002Gl-4y for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 00:20:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1pYa-0006Zk-7m for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 00:20:42 -0400 Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:63954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1pYZ-0006Zc-Vz for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 00:20:36 -0400 Received: by mail-qa0-f49.google.com with SMTP id w8so7075955qac.22 for ; Mon, 30 Jun 2014 21:20:35 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Org Mode Mailing List Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> All equations are numbered "1" when the attached example file is >> exported to HTML. >> >> #+Title: Example >> >> * H1 >> See Equation [[the-first]], >> >> #+name: the-first >> \begin{equation} >> n_{i+1} = \frac{n_{i} (d-i) (e-1)}{(i+1)} >> \end{equation} >> >> and also Equation [[the-second]]. >> >> #+name: the-second >> \begin{equation} >> n_{0} = 1 >> \end{equation} > > Only captioned equations are numbered. Behaviour is undefined for other > equations. > Why is this the default behavior? It looks to me like even when they're present captions on equations aren't displayed for HTML or LaTeX export. Additionally I don't see why captions should be related to, or required for, the numbering of equations. In a related issue which I believe is more convincingly a bug; links to equations (whether numbered or not, with or without captions) don't actually point anywhere. A link to the name is constructed, but no anchor with the name is inserted into the page. Would it make sense to change the current behavior as follows? 1. On HTML export all named equations are made into targets for a link based on their name. 2. All named and referenced equations are numbered. Thanks, > > > Regards, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)