Hi,
I'm trying to understand how to get sagetex to work properly. I
followed the instructions in the sage installation manual to make
sagetex known to latex. I then created the latex document
\documentclass[11pt]{article}
\usepackage{sagetex}
\begin{document}
We have that $\sin\left(\pi\right)=\sage{sin(pi)}$.
\end{document}
and compiled it using kile. I then ran:
./sage /home/dave/Desktop/HWK7.sage
and got the message
Processing Sage code for HWK7.tex...
Inline formula 0
**** Error in Sage code on line 8 of HWK7.tex! Traceback follows.
Traceback (most recent call last):
File "/home/dave/Desktop/HWK7.py", line 7, in <module>
_st_.inline(_sage_const_0 , sin(pi))
File "/home/dave/sage-4.7.1/local/lib/python2.6/site-packages/
sagetex.py", line 73, in inline
s.rstrip() + '}{}{}{}{}}\n')
File "element.pyx", line 328, in
sage.structure.element.Element.__getattr__ (sage/structure/element.c:
2794)
File "parent.pyx", line 277, in
sage.structure.parent.getattr_from_other_class (sage/structure/
parent.c:2940)
File "parent.pyx", line 175, in
sage.structure.parent.raise_attribute_error (sage/structure/parent.c:
2709)
AttributeError: 'sage.symbolic.expression.Expression' object has no
attribute 'rstrip'
**** Running Sage on HWK7.sage failed! Fix HWK7.tex and try again.
I'm not sure what is going on here; any idea? I'm running Ubuntu
11.04.
--
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
URL: http://www.sagemath.org