From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Sinayoko Subject: Re: equation numbering in html and latex export Date: Thu, 16 Jun 2011 12:46:59 +0100 Message-ID: References: <87pqme43gr.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXCnv-0006yf-5E for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:40:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXCno-0007WG-12 for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:40:14 -0400 Received: from lo.gmane.org ([80.91.229.12]:39718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXCnl-0007TU-Rf for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 09:40:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QXB5J-0006qb-Lx for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 13:50:05 +0200 Received: from sal.eng.cam.ac.uk ([129.169.126.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jun 2011 13:50:05 +0200 Received: from s.sinayoko by sal.eng.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jun 2011 13:50:05 +0200 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: emacs-orgmode@gnu.org Thanks Eric. I think you're right. It would make sense to use \begin{equation} \end{equation} with HTML export to number equations. I've put a minimal example below showing what is happening. -- #+TITLE: Equation numbering #+STYLE: * Numbered in HTML export / Not numbered in LaTeX Equation is numbered and can be referenced in HTML export. Equation is *not* numbered in LaTeX export. $$ \label{eq:1} y = ax + b $$ Equation \ref{eq:1} is a polynomial of order 1. * Not numbered in HTML / Numbered in LaTeX Equation is not numbered but can be referenced in HTML export. Equation is numbered in LaTeX export. \begin{equation} \label{eq:1} y = ax + b \end{equation} Equation \ref{eq:1} is not numbered but can be referenced in HTML export. It is numbered in LaTeX export. -- I also think the right behaviour would be to have a numbered equation in the second case in both HTML and LaTeX, and an unnumbered equation in the first case in both HTML and LaTeX. Does everyone agree? I'd be happy to try and change the behaviour of the HTML export if someone can point me in the right direction. Cheers, Sam