On Jan 21, 10:10 am, kcrisman <kcris...@gmail.com> wrote: > Changing subject and moving to sage-support... > > > > > > > > > > On Thu, 20 Jan 2011 at 10:24PM -0500, Luiz Felipe Martins wrote: > > >> I had a similar problem with a recent Sage installation I made (In > > >> ubuntu). I installed Sage, and SageTex according to the "official" > > >> documentation (get SageTex from the Sage site, set a local texmf > > >> structure, etc.), and had exceptions running sagetex.py > > > >> It so happened that texlive had an outdated version of sagetex.py. It > > >> is sort of a chicken-and-egg thing. SageTex needs some packages > > >> (makecmd.sty, or something like that), that are in the texlive-extras > > >> package, which also comes with the bad sagetex.py. I guess they just > > >> dump everything that is on CTAN in their package. > > > > This came up just a little while ago. SageTeX was part of TeXLive for > > > just long enough to "infect" lots of Linux packages, and there's nothing > > > we can do about it except wait for new TeXLive packages that don't > > > include SageTeX to come out. It'll take years. :( > > > > Fortunately, I think you can put sagetex.sty in your personal texmf tree > > > and TeX will use that version. You can also demand a particular version > > > of sagetex.sty in your LaTeX file: > > > > \usepackage{sagetex}[2010/10/20] > > > > or similar. > > > > In the meantime, there's now a mechanism in SageTeX to detect version > > > mismatches, but that doesn't help with the above problem... > > > What I did is create a symbolic link from > > ~/Library/texmf/tex/generic/sagetex to > > ~/sage/local/share/texmf/tex/generic/sagetex. Then I always have ~/sage > > point to my current version of sage. That way whenever I upgrade, the > > sagetex.sty file in my personal texmf tree is automatically upgraded, > > since it was just a symbolic link to my sage install. > > Unfortunately, I use MacTeX/TeXLive, and so this doesn't quite work. > I made a symbolic link > > ln -s /Applications/MathApps/sage/local/share/texmf/tex/generic/ > sagetex generic/sagetex > > but my tex still uses the sagetex in /usr/local/texlive/2008/texmf- > dist/tex/latex/sagetex/sagetex.sty > > and I'm not supposed to mess with that directory. Maybe if I put it > in /texmf/tex/latex instead? But that doesn't work either. > > Any ideas? > Jason wrote:
Did you regenerate your tex path list? Try doing $ sudo texhash Then do $ kpsewhich sagetex.sty and make sure that the path it prints out is your user tex path. For example, I get: $kpsewhich sagetex.sty /Users/grout/Library/texmf/tex/generic/sagetex/sagetex.sty Jason new-host-2:~ $ sudo texhash Password: texhash: Updating /usr/local/texlive/2008/../texmf-local/ls-R... texhash: Updating /usr/local/texlive/2008/texmf/ls-R... texhash: Updating /usr/local/texlive/2008/texmf-config/ls-R... texhash: Updating /usr/local/texlive/2008/texmf-dist/ls-R... texhash: Updating /usr/local/texlive/2008/texmf-doc/ls-R... texhash: Updating /usr/local/texlive/2008/texmf-var/ls-R... texhash: Done. new-host-2:~ $ kpsewhich sagetex.sty /usr/local/texlive/2008/texmf-dist/tex/latex/sagetex/sagetex.sty :-( Something about how this is installed makes it harder to do this. I can probably install *new* packages as easily as on the FAQs, but replacing this one seems to be a little harder. -- 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 For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org