ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 02 Jan 2013 00:06:08 +0100SageTeX doesn't workhttps://ask.sagemath.org/question/9669/sagetex-doesnt-work/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/installation/sagetex.html.
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.
Mon, 31 Dec 2012 19:42:41 +0100https://ask.sagemath.org/question/9669/sagetex-doesnt-work/Comment by kcrisman for <p>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. </p>
<p>When I load the corresponding .sage file on Sage, I get at the following message:</p>
<p>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
<a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a>.</p>
<p>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.</p>
https://ask.sagemath.org/question/9669/sagetex-doesnt-work/?comment=18458#post-id-18458There 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!Tue, 01 Jan 2013 10:32:54 +0100https://ask.sagemath.org/question/9669/sagetex-doesnt-work/?comment=18458#post-id-18458Answer by jdioses for <p>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. </p>
<p>When I load the corresponding .sage file on Sage, I get at the following message:</p>
<p>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
<a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a>.</p>
<p>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.</p>
https://ask.sagemath.org/question/9669/sagetex-doesnt-work/?answer=14390#post-id-14390noufalasharaf,
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.Wed, 02 Jan 2013 00:06:08 +0100https://ask.sagemath.org/question/9669/sagetex-doesnt-work/?answer=14390#post-id-14390Answer by noufalasharaf for <p>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. </p>
<p>When I load the corresponding .sage file on Sage, I get at the following message:</p>
<p>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
<a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a>.</p>
<p>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.</p>
https://ask.sagemath.org/question/9669/sagetex-doesnt-work/?answer=14408#post-id-14408Dear 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 LuckTue, 01 Jan 2013 10:43:23 +0100https://ask.sagemath.org/question/9669/sagetex-doesnt-work/?answer=14408#post-id-14408