Ask Your Question
1

SageTeX doesn't work

asked 2012-12-31 19:42:41 +0200

jdioses gravatar image

updated 2015-01-25 18:06:23 +0200

FrédéricC gravatar image

I'm using AUCTeX as my TeX editor. I created a TeX file loaded with SageTeX. When I run LaTeX on it I get the message that there are unresolved references. The output has question marks on the places I have put \sage. However, it seems to understand without any trouble the sageblock environment.

When I load the corresponding .sage file on Sage, I get at the following message:

VersionError: versions of .sty and .py files do not match. stexample.sagetex.sage was generated by sagetex.sty version "None", but is being processed by sagetex.py version "2012/01/16 v2.3.3-69dcb0eb93de". Please make sure that TeX is using the sagetex.sty from your current version of Sage; see http://www.sagemath.org/doc/installat....

I thought I had followed the instructions on the "Make SageTeX Known to TeX" section of the Sage installation guide but it's not working.

edit retag flag offensive close merge delete

Comments

There are a number of things you get if you do a search for that error message, I think, which should lead you to some discussions of how to make sure that the versions match. Sometimes you have to remove a few older style things to make it work. Happy New Year and good luck!

kcrisman gravatar imagekcrisman ( 2013-01-01 10:32:54 +0200 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2013-01-01 10:43:23 +0200

noufalasharaf gravatar image

Dear friend,

Sagetex works fine for me! Try to copy the file sagetex.sty and paste it in your tex working directory. That may resolve your problem. Myself using it with Kile editor latest version.

Good Luck

edit flag offensive delete link more
0

answered 2013-01-02 00:06:08 +0200

jdioses gravatar image

noufalasharaf,

I just did that and it worked fine! I didn't want to copy the sagetex.sty file directly into my working directory because the Sage installation guide says that is not the best way to handle this.

According to that guide, of the three ways to make SageTeX known to TeX, the third one is the best. And that's what I was doing before. The problem is that it doesn't create the necessary xyz.sagetex.sage file but only a file xyz.sage (which is the one that gives an error message).

Thanks a lot for the answer.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-12-31 19:42:41 +0200

Seen: 1,202 times

Last updated: Jan 02 '13