axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] RE: Patches for Maxima on DoyenCD


From: Page, Bill
Subject: [Axiom-developer] RE: Patches for Maxima on DoyenCD
Date: Tue, 3 Oct 2006 06:50:24 -0400

Alfredo,

On Tuesday, October 03, 2006 5:50 AM I wrote:
... 
> Here are the patches:
> 
> address@hidden LatexWiki]# cd ~
> address@hidden ~]# 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:
 
address@hidden 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.
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]