On 12 June 2012 03:41, Dan Drake <[email protected]> wrote: > On Mon, 11 Jun 2012 at 05:37PM +0100, John Cremona wrote: >> 3. I ran latex on that file twice. A file example.sage was created. > > That's the weird thing to me: on the LaTeX end, if you're using > sagetex.sty as included with 5.0, it should create > "example.sagetex.sage". If it made example.sage, then it must be an > older version of sagetex.sty that somehow got used. > > Can you try doing > > $ latex example.tex | grep sagetex
You are right: it shows (/usr/share/texmf-texlive/tex/latex/sagetex/sagetex.sty (which I should have noticed yesterday, sorry), despite this: jec%kpsewhich sagetex.sty /home/jec/texmf/tex/generic/sagetex/sagetex.sty I could get round this (as I have root access) by killing the old texlive version, but there should be a better way. Meanwhile, putting the correct sagetex.sty in the current directory also works. Thanks, John > > That should give you a full path to whatever LaTeX is using when > typesetting your file. That *should* be the same as what "kpsewhich > sagetex.sty" returns, but perhaps something strange is happening. Indeed. > >> What did I do wrong? By the way, if I cd into >> $HOME/texmf/tex/generic/sagetex/ and there run latex on the >> example.tex file there, it creates a file example.sagetex.sage on >> which sage runs fine, and after rerunning latex (twice) I get a dvi >> file which looks perfect. > > That tells me that LaTeX must be getting confused somewhere. We just > need to figure out what wrong version of sagetex.sty it is finding. > > Dan > > -- > --- Dan Drake > ----- http://mathsci.kaist.ac.kr/~drake > ------- -- 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
