latex output



Leo:
Wow,  thanks, i had _no_ idea such packages existed, thats why i went to
third party packages.
thanks


On Thu, Jun 6, 2013 at 9:53 PM, Leo Butler
<l_butler at users.sourceforge.net>wrote:

>    >From mailnull  Thu Jun  6 18:31:28 2013
>    Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of
> math.utexas.edu designates 146.6.25.6 as permitted sender)
> client-ip=146.6.25.6; envelope-from=maxima-bounces at math.utexas.edu; helo=
> irongate.mail.utexas.edu;
>    Date: Thu, 6 Jun 2013 21:30:05 +0300
>    From: jiun bookworm <thebookworm101 at gmail.com>
>    CC: <maxima at math.utexas.edu>
>    Content-Type: multipart/mixed;
>            boundary="===============2903010336471241614=="
>
>    --===============2903010336471241614==
>    Content-Type: multipart/alternative;
> boundary="047d7bd75b30d8fc8604de8080c4"
>
>    --047d7bd75b30d8fc8604de8080c4
>    Content-Type: text/plain; charset="ISO-8859-1"
>
>    On Thu, Jun 6, 2013 at 8:41 PM, Robert Dodier <robert.dodier at gmail.com
> >wrote:
>
>    > On 2013-06-06, jiun bookworm <thebookworm101 at gmail.com> wrote:
>    >
>    > > Im tying to render some output from maxima, and i found some
> libraries i
>    > > was using to convert  the ascii to mathml   inadequte, is there some
>    > maxima
>    > > "trick " to always get replies in latex?
>    >
>    > What library did you try for generating MathML output?
>
>
>    i was playing with  asciimathpython  and asciitomathml , both available
> on
>    pypi
>    i basically did :
>     display2d: false$
>    and converted the output to mathml which i used to render in a browser,
> but
>    they seem to produce inacuarate  results for complex output, an example
> is
>    the result from the last command here is done wrong by those python
>    libraries:
>
>    display2d:false$
>    integrate(1/((x-3)^4+1/2), x);
>    changevar (%, x - 3 - y ,y ,x);
>    ev (%, integrate);
>
>    you can compare the tow images here of my render and wxmaxima's
>    http://imgur.com/t5JaH7F,LTMB9bx#0
>    http://imgur.com/t5JaH7F,LTMB9bx#1
>
>    i so i was hoping i could get the latex directly from maxima, rather
> than
>    introduce some intermediate step thats introducing regressions to my
> code.
>
> Ahh, I understand better what you want. As Robert says, there are
> packages in Maxima to do this without screenscraping:
>
> (%i1) load('mathml);
> (%o1)
> /home/work/maxima/sandbox/maxima-current-release/share/contrib/lurkmathm\
> l/mathml.lisp
> (%i2) x/y;
>                                        x
> (%o2)                                  -
>                                        y
> (%i3) mathml(%);
> <math xmlns="http://www.w3.org/1998/Math/MathML">; <mfrac><mrow>
>  <mi>x</mi> </mrow> <mrow><mi>y</mi> </mrow></mfrac> </math>(%o3)
>                        false
> (%i4) :lisp (setf *alt-display2d* (lambda(x) (mfuncall '$mathml x)))
>
> #<FUNCTION (LAMBDA (X)) {C8B76CD}>
> (%i4) x/y;
> <math xmlns="http://www.w3.org/1998/Math/MathML">; <mi>mlabel</mi>
>  <mfenced separators=""><mfrac><mrow><mi>x</mi> </mrow> <mrow>
>  <mi>y</mi> </mrow></mfrac> <mo>,</mo><mfrac><mrow><mi>x</mi>
>  </mrow> <mrow><mi>y</mi> </mrow></mfrac> </mfenced> </math>
>
>
> Leo
>