I'm using the Linux prebuilt binary of version 2.3, with Debian
IceWeasel 2.0.0.1.
Any attempt to use \sage{...} in a %latex cell (at leastreports `source
must be a string' and typesets [... undefined]. This is due to a bug in
misc/sage_eval.py, which insists its argument be a `str'; unfortunately,
Latex._latex_preparse attempts to pass it a `unicode'.
The following patch, against Sage 2.3, fixes the problem for me.
--- sage/misc/sage_eval.py.orig 2007-03-06 22:35:06.000000000 +0000
+++ sage/misc/sage_eval.py 2007-03-09 11:41:59.000000000 +0000
@@ -101,7 +101,7 @@
Here you can see eval simply will not work but \code{sage_eval} will.
"""
- if not isinstance(source, str):
+ if not isinstance(source, basestring):
raise TypeError, "source must be a string."
import sage.all
-- [mdw]
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---