From mboxrd@z Thu Jan 1 00:00:00 1970
From: Eric S Fraga
Subject: Re: equation numbering in html and latex export
Date: Thu, 16 Jun 2011 08:53:24 +0100
Message-ID: <87pqme43gr.fsf@ucl.ac.uk>
References:
Mime-Version: 1.0
Content-Type: text/plain
Return-path:
Received: from eggs.gnu.org ([140.186.70.92]:41051)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1QX85G-0006IV-7X
for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 04:37:54 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1QX855-0001bL-0l
for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 04:37:49 -0400
Received: from vscani-b2.ucl.ac.uk ([144.82.108.135]:44211)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1QX854-0001aY-57
for emacs-orgmode@gnu.org; Thu, 16 Jun 2011 04:37:38 -0400
In-Reply-To: (Samuel Sinayoko's message of
"Tue, 14 Jun 2011 07:48:43 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Samuel Sinayoko
Cc: emacs-orgmode@gnu.org
Samuel Sinayoko writes:
> 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?
I can't help you wish HTML unfortunately but I can summarise the issue
in LaTeX.
With the standard document class (article say), equations can be either
"displayed" or "inline". Only displayed equations are numbered and then
only if you use =equation= (or =align=, =eqnarray=, etc). $$ ... $$ is
equivalent to \[ ... \] which is essentially equivalent to the
unnumbered version of \begin{equation} (aka \begin{equation*}).
The trick would be to get the HTML exporter to apply the same processing
to \begin{equation} ... \end{equation} as it does to $$ ... $$, I guess?
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.399.g01eb)