latex output



Leo,
it does not seem to work in the lisp file:

[]$ ~/eng/math/maxima-5.30.0/maxin/bin/rmaxima -q
--init-mac="./tmp/.maxima/maxima-init.mac"
--init-lisp="./tmp/.maxima/maxima-init.lisp"
(%i1) x/y;

(%o1) x/y
(%i2)

Here is the lisp file content:

[]$ cat ./tmp/.maxima/maxima-init.lisp
($load "mathml")
(setf *alt-display2d* (lambda(x) (mfuncall '$mathml x)))

if i start maxima then run an equivalent of the two commands it works

[]$ ~/eng/math/maxima-5.30.0/maxin/bin/rmaxima -q
(%i1) load('mathml) ;
(%o1)    /usr/share/maxima/5.27.0/share/contrib/lurkmathml/mathml.lisp
(%i2) :lisp (setf *alt-display2d* (lambda(x) (mfuncall '$mathml x)))

#<FUNCTION (LAMBDA (X)) {1005055CEB}>
(%i2) x/y;
<math xmlns="http://www.w3.org/1998/Math/MathML">; <mi>mlable</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>
(%i3)






On Fri, Jun 7, 2013 at 4:29 AM, Leo Butler
<l_butler at users.sourceforge.net>wrote:

>    >From mailnull  Thu Jun  6 20:05:55 2013
>    Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of
> math.utexas.edu designates 146.6.25.7 as permitted sender)
> client-ip=146.6.25.7; envelope-from=maxima-bounces at math.utexas.edu; helo=
> ironclad.mail.utexas.edu;
>    From: Robert Dodier <robert.dodier at gmail.com>
>    Date: Thu, 6 Jun 2013 20:05:15 +0000
>    Content-Type: text/plain; charset="us-ascii"
>
>    On 2013-06-06, Leo Butler <l_butler at users.sourceforge.net> wrote:
>
>    > Robert, what do you mean by 'content and presentation' ?
>
>    There are two flavors of MathML -- presentation MathML represents
>    expressions in terms of display operators (e.g. subscript and
>    superscript) while content MathML is a "mathematical" representation
>    (e.g. index and exponent). Content MathML is pretty much like a
>    reexpression of Maxima's internal representation (op + args) in XML.
>
> Ok, I see. Thanks.
>
>    It is annoying that MathML is based on XML instead of Lisp, since
>    XML is pretty starkly inferior in many ways, but after complaining
>    about XML for some years, I got on the bandwagon -- if you can't
>    beat 'em, join 'em.
>
> Worse is better, yes?
>
> (pace http://naggum.no/worse-is-better.html)
>
> Leo
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>