The story gets more complicated: I commented out the \sage{2^100}
calculation, and without that, it runs fine.
This seems to have no problems:
%!TEX TS-program = sage
\documentclass{article}
\usepackage{sagetex}
\usepackage{graphicx}
\begin{document}
This is an example of using \textsf{Sage} within a \LaTeX\
document:
\sageplot[width=3in]{plot((sin(x))/x,-10,10)}
\end{document}
What is wrong with the \sage command then?
Oscar
On Feb 14, 2:10 pm, Oscar <[email protected]> wrote:
> I did change the drop-down menu so that it says 'sage'. I did
> 'kpsewhich sagetex.sty' and this is what I got:
>
> Cnidus:~ oscar$ kpsewhich sagetex.sty
> /Users/oscar/Library/texmf/tex/sagetex.sty
>
> The whole console text is
> athttp://dl.dropbox.com/u/3709792/sagetex_example_console.txt
>
> You'll see that there is a line that says:
>
> **** Running Sage on sage_example.sage failed! Fix sage_example.tex
> and try again.
>
> Thanks,
>
> Oscar
>
> On Feb 12, 5:36 pm, Dan Drake <[email protected]> wrote:
>
>
>
> > On Fri, 12 Feb 2010 at 01:39PM -0800, Oscar wrote:
> > > I just installed Sage (sage-4.3.2-OSX-64bit-10.6-i386-Darwin.dmg) in
> > > my MacBook Pro (Mac OS 10.6.2). I am using TeXShop 2.30.
>
> > Okay, I see you're using the most recent version. I just tried your
> > example -- did you change the drop-down menu next to the "Typeset"
> > button to read "sage"?
>
> > Can you do "kpsewhich sagetex.sty" in a terminal and report what that
> > says?
>
> > There seems to be a further problem on my computer at least, that the
> > .sage file being written is not in quite the correct format. If, with
> > your example, you see an error about "AttributeError:
> > 'sage.rings.integer.Integer' object has no attribute 'rstrip'" reply to
> > this thread.
>
> > Dan
>
> > --
> > --- Dan Drake
> > ----- http://mathsci.kaist.ac.kr/~drake
> > -------
>
> > signature.asc
> > < 1KViewDownload
--
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