emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lianheng Tong <ucaplto@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: "&" not converted to &amp; when in equation enviroments
Date: Fri, 3 Feb 2012 12:13:06 +0000	[thread overview]
Message-ID: <AA88E03A-D74B-4476-92FB-74C809E11627@ucl.ac.uk> (raw)

Dear all,

I am using org-mode version 7.7, and tried to export my org documents into html using org-export-html functions. I found that in normal texts and inline maths, the characters "&", "<" and ">" are converted correctly to "&amp;" "&lt;" and "&gt;" according to the definitions made by org-export-html-protect-char-alist.

However, the "&" and "<", ">" signs used in equations are NOT converted.  For example, if one has some thing like:

First, type & < >

This is an inline math $1 < y > 8$.

\begin{align}
  x & = a + b \\
  y & < c - d
\end{align}

Will give the following segment in the exported html file:

<p>
First, type &amp; &lt; &gt;.
</p>

<p>
This is an inline math \(1 &lt; y &gt; 8\).
</p>

\begin{align}
  x & = a + b \\
  y & < c + d
\end{align}

This produces an error when I tried to validate against the XHTML standard (as one would expect).

Is this an intended feature, and is there a switch/flag I can use to change this behaviour or is it a bug, and is there an easy fix? Thank you very much for your help in advance.

Best regards,

Lianheng


==========================================================
Lianheng Tong                                                             Tel: +44 20 7679 3302
London Centre For Nanotechnology                       Fax: +44 20 7679 0595
University College London                                        lianheng.tong@ucl.ac.uk
17–19 Gordon Street, London WC1H 0AH, U.K.
==========================================================

                 reply	other threads:[~2012-02-03 12:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AA88E03A-D74B-4476-92FB-74C809E11627@ucl.ac.uk \
    --to=ucaplto@ucl.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).