emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Sinayoko <s.sinayoko@eng.cam.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: equation numbering in html and latex export
Date: Thu, 16 Jun 2011 12:46:59 +0100	[thread overview]
Message-ID: <vjuypqmef170.fsf@sal.eng.cam.ac.uk> (raw)
In-Reply-To: 87pqme43gr.fsf@ucl.ac.uk

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: <SCRIPT SRC="jsMath/easy/load.js"></SCRIPT>

* 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

  parent reply	other threads:[~2011-06-16 13:40 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
2011-06-16 10:36   ` Samuel Sinayoko
2011-06-16 11:46   ` Samuel Sinayoko [this message]
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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=vjuypqmef170.fsf@sal.eng.cam.ac.uk \
    --to=s.sinayoko@eng.cam.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).