About the MathML packages



On 7/17/07, fwsmail35 <fwsmail35 at aol.com> wrote:
> Yes, I had already read what you think about the conversion between
> Maxima/MathML. I know your not really enthusiastic about such a
> conversion and I agree it will anyway be limited, but I personally think
> It could be interesting for a lot of people.
>
> For the moment I can't get the packages working, so I would simply like
> to have some explanations in order to use them...

There are two packages - both only convert maxima output to mathml.

1. package:
produces presentation and content mathml:

(%i1) load("load-mathml.lisp")$
(%i2) x^2+x+1;
PRESENTATION-EXP
<math  xmlns='http://www.w3.org/1998/Math/MathML'>
<mrow>
   <msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><mi>x</mi><mo>+</mo><mn>1</mn>
</mrow>
</math>
CONTENT-EXP
<math  xmlns='http://www.w3.org/1998/Math/MathML'>
<apply>
   <plus/>
   <apply>
      <power/><ci>x</ci><cn type="integer">2</cn>
   </apply>
   <ci>x</ci><cn type="integer">1</cn>
</apply>
</math>
END-EXP

2. package:
works mostly like the tex function.

(%i1) load("mathml.lisp")$
(%i2) mathml(x^2+x+1);
<math xmlns="http://www.w3.org/1998/Math/MathML">; <msup><mrow>
 <mi>X</mi> </mrow> <mn>2</mn> </msup> <mo>+</mo> <mi>X</mi>
 <mo>+</mo> <mn>1</mn> </math>
(%o2) false

Or output mathml into a file:

(%i3) mathml(x^2+x+1, "output.xml");
(%o3) false

As you can see the second package has not been updated to work with
case sensitive maxima - it is not hard, I will do it before the next
release.

-- 
Andrej