Alfredo,

On Tuesday, October 03, 2006 5:50 AM I wrote:
... 
> Here are the patches:
> 
> [EMAIL PROTECTED] LatexWiki]# cd ~
> [EMAIL PROTECTED] ~]# cd /var/lib/zope/Products/LatexWiki
> 
> The first one is a correction to the Maxima Lisp interface code.
> ...

Under GCL the extra \ character is not generated but under Clisp
with the version of Maxima on the DoyenCD an additional test is
required to correct this weird behaviour of names in Maxima.

So finally, here's a hack that should work on both GCL and Clisp:
 
[EMAIL PROTECTED] LatexWiki]$ darcs diff *.lisp -u
--- old-latexwiki/LatexWiki/mathaction-maxima-5.9.3.lisp
2006-10-03 05:36:41.000000000 -0500
+++ new-latexwiki/LatexWiki/mathaction-maxima-5.9.3.lisp
2006-10-03 05:36:41.000000000 -0500
@@ -36,7 +36,8 @@
 (defun tex-stripdollar (sym)
   (or (symbolp sym) (return-from tex-stripdollar sym))
   (let* ((name (quote-% (print-invert-case sym)))
-      (name1 (if (memq (elt name 0) '(#\$ #\&)) (subseq name 1) name))
+      (name1 (if (eq (elt name 0) #\\) (subseq name 1) name))
+      (name1 (if (memq (elt name1 0) '(#\$ #\&)) (subseq name1 1)
name1))
       (l (length name1)))
     (if (eql l 1) name1 (concatenate 'string "\\mathrm{" name1 "}"))))


--------

Please give this a try in Doyen together with the patch in my
previous email for 'ReplaceInlineMaxima.py'.

Regards,
Bill Page.
 


_______________________________________________
Axiom-developer mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-developer

Reply via email to