Quantcast
Channel: ASKSAGE: Sage Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 6

Answer by Hoed for For calling SAGE from within LATEX-file there must be following entry in line 1:% !TEX TS-program = sage // (this creates undersome conditions I dont know a syntax error)...and \usepackage{sagetex}But I get in one tex-file a syntax error in Line 1. Does anyone know a work around or how it really works?Many thanks in advance for your hints. Gerald

Previous: Comment by dazedANDconfused for Hi,I'm new to the forum, and basically, I know it's bad style to put a question into the answers line, but I don't want to open another thread, because my problem is somewhat linked to the thread here.I'm new to Sage, so maybe that's just peanuts for most of you. However, I am using Sage under VM VirtualBox and LaTeX MiKTEx 2.9 under Win 7. Now, I want Sage and TeX to be good friends, and I followed all the steps in the installation guide of Sage. Thing is: I have a versions mismatch of the sagetex.sty and sagetex.py files, that shouldn't be there. I updated the sagetex.sty to the version, I use under Sage for sagetex.py by:Giving MiKTeX a new root to look atdeleting the old sagetex.sty and providing the new onedeleting the whole sagetex package with MiKTeX, only providing a new root where to find the sagetex.stycopying the sagetex.sty into the directory I work in with my TeX-FileAll I get is: Version mismatch. The version of your sagetex.sty is "none", the version of your sagetex.py is "2012/01/16 v2.3.3-69dc..." However, looking into sagetex.sty with any editor, I get: "\ProvidesPackage{sagetex} [2012/01/16 v2.3.3-69dcb0eb93de embedding Sage into LaTeX documents] \newcommand{\ST@ver}{2012/01/16 v2.3.3-69dcb0eb93de}"So, the versions of sagetex.py and sagetex.sty are the same. What am I missing. I appreciate any help.Regards, H.
$
0
0
Hi, I'm new to the forum, and basically, I know it's bad style to put a question into the answers line, but I don't want to open another thread, because my problem is somewhat linked to the thread here. I'm new to Sage, so maybe that's just peanuts for most of you. However, I am using Sage under VM VirtualBox and LaTeX MiKTEx 2.9 under Win 7. Now, I want Sage and TeX to be good friends, and I followed all the steps in the installation guide of Sage. Thing is: I have a versions mismatch of the sagetex.sty and sagetex.py files, that shouldn't be there. I updated the sagetex.sty to the version, I use under Sage for sagetex.py by: 1. Giving MiKTeX a new root to look at 2. deleting the old sagetex.sty and providing the new one 3. deleting the whole sagetex package with MiKTeX, only providing a new root where to find the sagetex.sty 4. copying the sagetex.sty into the directory I work in with my TeX-File All I get is: Version mismatch. The version of your sagetex.sty is "none", the version of your sagetex.py is "2012/01/16 v2.3.3-69dc..." However, looking into sagetex.sty with any editor, I get: "\ProvidesPackage{sagetex} [2012/01/16 v2.3.3-69dcb0eb93de embedding Sage into LaTeX documents] \newcommand{\ST@ver}{2012/01/16 v2.3.3-69dcb0eb93de}" So, the versions of sagetex.py and sagetex.sty are the same. What am I missing. I appreciate any help. Regards, H.

Viewing all articles
Browse latest Browse all 6

Trending Articles