That is right. There was an old sagetex.sty that was downloaded with
texlive:

Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/sagetex/sagetex.sty

I deleted it and it works fine.

Now that I think of it, I think this is actually mentioned in the
sagetex doc somewhere.

Thanks for the prompt response!

On Jan 16, 10:19 pm, Dan Drake <[email protected]> wrote:
> On Sun, 16 Jan 2011 at 01:52PM -0800, Luiz Felipe Martins wrote:
> > The offending code in sagetex.py is:
>
> >   def inline(self, counter, s):
> >     self.progress('Inline formula {0}'.format(counter))
> >     self.souttmp.write('\\newlabel{@sageinline' + str(counter) + '}{{%\n' +
> >                  s.rstrip() + '}{}{}{}{}}\n')          # <<<<<<<<<<<<<<<<
> > s is not a string, can be any sage object here
>
> > I changed this to:
>
> >   def inline(self, counter, s):
> >     self.progress('Inline formula {0}'.format(counter))
> >     self.souttmp.write('\\newlabel{@sageinline' + str(counter) + '}{{%\n' +
> >                  latex(s).rstrip() + '}{}{}{}{}}\n')
>
> > And it works correctly. The versions I'm using are sage 4.6.1, and sagetex
> > [2010/03/25 v2.2.5 embedding Sage into LaTeX documents]
>
> That is very strange; the `s' in the function above should already be a
> string. Your version of sagetex.sty has:
>
>    \newcommand{\sage}[1]{\ST@sage{latex(#1)}}
>
> so `s' should be a string. What is in the generated .sage file? You
> should see "latex(2+2)" there.
>
> 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

Reply via email to