Ismael Garrido | 17 May 05:50

Bug Report - tex2ooo

Using Maxima 5.15.0, compiled on Debian Lenny AMD64 using CLISP.

kill(all);
(%o0) done
(%i1) load (tex2ooo);
(%o1) /usr/local/share/maxima/5.15.0/share/contrib/tex2ooo.lisp
(%i2) 'integrate(x^2*exp(-%i), x);
(%o2) %e^(-%i)*integrate(x^2,x)
(%i3) tex(%);
Maxima encountered a Lisp error:

APPEND: A proper list must not end with " cdot "
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

(%i2) (s+1)/(s^4+3*s^3+4*s^2-2*s-3);
(%o2) (s+1)/(s^4+3*s^3+4*s^2-2*s-3)
(%i3) tex(%);
Maxima encountered a Lisp error:

APPEND: A proper list must not end with " cdot "
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

BTW: "cdot" is multiplication "." in OOoMath.

Thanks
Ismael
Richard Fateman | 17 May 07:17

Re: Bug Report - tex2ooo

You don't need such a complex example to show that tex2ooo, whatever it is
for, is quite broken.
(%i5) trace(?tex);
(%o5)                                [tex]
(%i7) tex(x*y);
1 Enter ?tex [x y, false, false, mparen, mparen]
 2 Enter ?tex [x, false,  cdot , mparen, *]
(X . " cdot ") has an atomic cdr - `display'
 -- an error.  To debug this try debugmode(true); 
Robert Dodier | 17 May 16:51

Re: Bug Report - tex2ooo

On 5/16/08, Ismael Garrido <ismaelgf <at> adinet.com.uy> wrote:

>  (%i2) (s+1)/(s^4+3*s^3+4*s^2-2*s-3);
>  (%o2) (s+1)/(s^4+3*s^3+4*s^2-2*s-3)
>  (%i3) tex(%);
>  Maxima encountered a Lisp error:
>
>  APPEND: A proper list must not end with " cdot "

Sorry, there is some bit-rot in tex2ooo.lisp; it is a modified version
of src/mactex.lisp, and the two have diverged. I have committed a
bug fix to cvs but you might run into other discrepancies.
With the new tex2ooo:

(s+1)/(s^4+3*s^3+4*s^2-2*s-3);
tex (%);
 => {alignc {s + 1} over {s^4  + 3 cdot s^3  + 4 cdot s^2  - 2 cdot s - 3
 }}

HTH

Robert Dodier

PS.
Index: share/contrib/tex2ooo.lisp
===================================================================
RCS file: /cvsroot/maxima/maxima/share/contrib/tex2ooo.lisp,v
retrieving revision 1.7
diff -u -r1.7 tex2ooo.lisp
--- share/contrib/tex2ooo.lisp  17 Feb 2008 01:42:49 -0000      1.7
(Continue reading)


Gmane