emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: bug in odt export via mathml of equations containing '&'
Date: Fri, 04 Nov 2011 23:19:33 +0000	[thread overview]
Message-ID: <87fwi3wk56.fsf@gmail.com> (raw)


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 `&amp;'

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

             reply	other threads:[~2011-11-04 23:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-04 23:19 Myles English [this message]
2011-11-08 21:17 ` bug in odt export via mathml of equations containing '&' Jambunathan K
2011-11-09  6:01   ` Jambunathan K
2011-11-08 21:34 ` Jambunathan K

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=87fwi3wk56.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --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).