From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Sinayoko Subject: equation numbering in html and latex export Date: Tue, 14 Jun 2011 07:48:43 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWQjB-00018L-7s for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 06:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWQjA-00016h-4O for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 06:20:09 -0400 Received: from lo.gmane.org ([80.91.229.12]:58680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWQj9-000167-NK for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 06:20:07 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QWQj8-0000Yh-Ds for emacs-orgmode@gnu.org; Tue, 14 Jun 2011 12:20:06 +0200 Received: from cpc4-cmbg3-0-0-cust826.5-4.cable.virginmedia.com ([86.14.227.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jun 2011 12:20:06 +0200 Received: from s.sinayoko by cpc4-cmbg3-0-0-cust826.5-4.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Jun 2011 12:20:06 +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 Dear list, I've been trying to write short scientific reports that I can export to both LaTeX and HTML. So far I've managed to figure out how to include equations, images, references, and how to include labels and cross reference between all these things. The only problem I have is that I can't get numbered equations in both LaTeX and HTML. Using the snippet below, I'm able to get a numbered equation in HTML but not in LaTeX. I've put loadFiles: ["extensions/eqn-number.js"], in jsMath/easy/load.js. If I replace the $$ by \begin{equation} and \end{equation}, I get a numbered equation in LaTeX but not in HTML. How can I get numbered equations in both HTML and LaTeX? Thanks, Sam ------- #+TITLE: A simple equation #+STYLE: #+OPTIONS: LaTeX:verbatim * A simple equation This is to test writing equations with org-mode. Hopefully MathJax is going to be used. $$ \label{eq:1} x_{1,2} = \frac{-b \pm \sqrt{\Delta}}{2a} $$ Equation \ref{eq:1} gives the roots of a polynomial of order 2.