I am having the same trouble as John. Would you expand a little bit on your solution:
for example $\sage{'Hello'}$ causes an error. Where should I put the 'r' as suggested in your post (I think stands for raw string)? I tried several combination but nothing seems to work. Btw, 'text' in sage take two arguments and is for 2D plot, isn't it? On Sunday, June 24, 2012 1:46:28 AM UTC-7, Slumberland wrote: > > Your output looks different than mine when this happens, but I think it's > the same: > > there is still a Python text parser operating on your strings before Latex > can get to them. > \nabla will give you \n "newline", \tau will give you \t, etc. > > if you type an r before the quotes surrounding the string, e.g. > text(r' now you may $\backslash$ until you can $\backslash$ no > more... uh... forever' ) > the line is read without escape codes. > > I found this information buried at the bottom of a documentation page, but > I think the real problem is that it is unnatural. SAGE should not read > Python escape codes inside $'s. As you've noticed from the error message, > SAGE doesn't even know it's still doing it. It thinks it's parsing LaTeX. > > Unless that's not what's happening to you! > > >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en.