About the MathML packages



Hello,

I don't know whether it is relevant, but I get a warning when I load the
package of Paul Wang. Otherwise it seems to work well, thought I have
not tried complex examples. Also, I get an error using mathml(); from
mathml-maxima.lisp, package supposed to send MathML to Maxima :

Maxima 5.12.0cvs http://maxima.sourceforge.net
Using Lisp CLISP 2.41 (2006-10-13)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) load("load-mathml.lisp")$
WARNING: DEFUN/DEFMACRO: redefining function DISPLA in
/usr/local/share/maxima/5.12.0cvs/share/contrib/maximaMathML/mathmldisplay.lisp,
was defined in
         /home/fred/maxima/src/binary-clisp/displa.fas
WARNING: DEFUN/DEFMACRO: redefining function MYTERPRI in
/usr/local/share/maxima/5.12.0cvs/share/contrib/maximaMathML/PrMathML.lisp,
was defined in
         /home/fred/maxima/src/binary-clisp/mactex.fas
(%i2) mathml();
Maxima encountered a Lisp error:

 
EVAL: undefined function IMEMBER

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i3)
> 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.
>