[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [odt] regression in using an equation sourced via latex_header
From: |
Myles English |
Subject: |
Re: [O] [odt] regression in using an equation sourced via latex_header |
Date: |
Wed, 02 Nov 2011 21:38:42 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
>> 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