emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Samuel Sinayoko <s.sinayoko@soton.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: equation numbering in html and latex export
Date: Thu, 16 Jun 2011 08:53:24 +0100	[thread overview]
Message-ID: <87pqme43gr.fsf@ucl.ac.uk> (raw)
In-Reply-To: <m062o852no.fsf@uos-10952.router> (Samuel Sinayoko's message of "Tue, 14 Jun 2011 07:48:43 +0100")

Samuel Sinayoko <s.sinayoko@soton.ac.uk> 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
: using Org-mode version 7.5 (release_7.5.399.g01eb)

  reply	other threads:[~2011-06-16  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-14  6:48 equation numbering in html and latex export Samuel Sinayoko
2011-06-16  7:53 ` Eric S Fraga [this message]
2011-06-16 10:36   ` Samuel Sinayoko
2011-06-16 11:46   ` Samuel Sinayoko
2011-06-16 14:37   ` Darlan Cavalcante Moreira
2011-06-16 15:39     ` Samuel Sinayoko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pqme43gr.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=s.sinayoko@soton.ac.uk \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).