emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [odt] regression in using an equation sourced via latex_header
Date: Wed, 02 Nov 2011 21:38:42 +0000	[thread overview]
Message-ID: <874nymryql.fsf@gmail.com> (raw)
In-Reply-To: <81d3db64em.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 02 Nov 2011 00:44:57 +0530")

>> On Wed, 02 Nov 2011 00:44:57 +0530, Jambunathan K said:

  >> 2. mathml - You need to register your command file with -ncf
  >> argument.
  >> 
  >> For example, if I put the mystyle.tex in the same directory as
  >> exported .org file and add the -ncf argument to the converter as
  >> below
  >> 
  >> #+begin_src emacs-lisp (setq org-latex-to-mathml-convert-command
  >> "java -jar %j -ncf mystyle.tex -unicode -force -df %o %I ")
  >> #+end_src
  >> 

  > ncf option is documented here:
  > http://www.mathtoweb.com/cgi-bin/mathtoweb_users_guide.pl#Using_newcommand_and_renewcommand

I have narrowed the problem I am having down to newcommands that build
on other newcommands, like so ...

If I have this in my style file:

\newcommand{\pressure}{p}
\newcommand{\capillaryPressure}{\pressure_{c}}

and try to use it like this:

#+LABEL: Equation:cp
     \begin{equation}
     \capillaryPressure=0
     \end{equation}

then I get this xml:

<?xml version="1.0" encoding="UTF-8"?>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
	<mspace width="1.00em" />
	\pressur
	<msub>
		<mi>e</mi>
		<mi>c</mi>
	</msub>
	<mo>=</mo>
	<mn>0</mn>
</mrow>
</math>

when what I expected was P_c .

Any ideas?

Myes

  reply	other threads:[~2011-11-02 21:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01 16:10 [odt] regression in using an equation sourced via latex_header Myles English
2011-11-01 19:10 ` Jambunathan K
2011-11-01 19:14   ` Jambunathan K
2011-11-02 21:38     ` Myles English [this message]
2011-11-03 14:59       ` Myles English
2011-11-03 18:21         ` Plastex + MathToWeb (was Re: [odt] regression in using an equation sourced via latex_header) 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=874nymryql.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).