From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: bug in odt export via mathml of equations containing '&' Date: Fri, 04 Nov 2011 23:19:33 +0000 Message-ID: <87fwi3wk56.fsf@gmail.com> Reply-To: emacs-orgmode Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMT11-0005RX-E9 for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 19:17:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMT0z-0004Cj-Kt for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 19:17:39 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:39385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMT0z-0004BW-GD for emacs-orgmode@gnu.org; Fri, 04 Nov 2011 19:17:37 -0400 Received: by wyg24 with SMTP id 24so3508931wyg.0 for ; Fri, 04 Nov 2011 16:17:36 -0700 (PDT) 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 Mode If an org file contains a latex equation with a '&' in it then when it is exported to odt it makes dodgy xml. Unzipping the odt, opening the content.xml and doing M-x rng-first-error gives the message: `&' that is not markup must be entered as `&' To reproduce, insert this: \begin{equation} \delta_{mn} = \begin{cases} 1& \text{if $n=m$}\\ 0& \text{if $n\nem$} \end{cases} \end{equation} (which I got from here http://www.mathtoweb.com/cgi-bin/mathtoweb_users_guide.pl , search for 'cases') into the file math-to-web-with-plastex.org in this post: http://permalink.gmane.org/gmane.emacs.orgmode/48815 and export as per instructions. There may be a similar error with equations containing '<', '>'. Myles