From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lianheng Tong Subject: "&" not converted to & when in equation enviroments Date: Fri, 3 Feb 2012 12:13:06 +0000 Message-ID: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtI1H-0006QC-Sp for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 07:13:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtI1A-0001a4-8s for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 07:13:35 -0500 Received: from vscani-d2.ucl.ac.uk ([144.82.108.133]:52124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtI1A-0001Zi-4k for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 07:13:28 -0500 Received: from vpn-240-4.roam.ucl.ac.uk ([144.82.240.4] helo=[10.110.9.231]) by vscani-d.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1RtI0q-0002PK-DY for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 12:13:08 +0000 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 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 "&" "<" and ">" 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 & =3D a + b \\ y & < c - d \end{align} Will give the following segment in the exported html file:

First, type & < >.

This is an inline math \(1 < y > 8\).

\begin{align} x & =3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D 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=9619 Gordon Street, London WC1H 0AH, U.K. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D