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, 07 Jun 2017 20:45:36 +0200- Problems with Sagetex under Texshophttps://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/Hi,
I am new to MAC and all the related stuff. Changed from MS Winxxx to Mac because they said it would be much user friendly. But now I have some problems. I am using Texshop. I tried to run Sagetex, but it does not work. I get the message "Latex error! File sagetex.sty not found". I copied the folder sagetex everywhere in my system. I cannot definitely say, where the latex installation folder is. Or how to get to the installation folder. I spent hours and hours following the advices I found on the web. Without success. I am using Lion with its latest update. Texshop has also its latest update. Same to Sage. When I run the example.tex from Sagetex folder, everything is fine. But when I run Example.tex from a folder located e.g. on my desktop then the error message appears. I know that the system cannot find the sagetex.sty. But why? I followed the instructions given under: http://www.sagemath.org/doc/installation/sagetex.html
Any hint appreciated.
Keep on rocking'
RickRick1271Mon, 14 Nov 2011 17:12:22 +0100https://ask.sagemath.org/question/8472/
- SageTeX, TeXShop, and Sage.apphttps://ask.sagemath.org/question/37828/sagetex-texshop-and-sageapp/I'm trying to get SageTeX to work with TeXShop, but there seems to be a conflict about the name of the application.
TeXShop is able to see sagemath.sty, and Sage was working fine, and then I did the following things:
(0) Quit Sagemath.
(1) Rename Sagemath7.6.app to Sage.app
(2) Followed instructions in Ron Bannon's Embedding Sage in LATEX with SageTEX for TEXShop Users, as follows:
(a) Went to ~/Library/TeXShop/Engines/Inactive/Sage and copied the file sage.engine to ~/Library/TeXShop/Engines/
(b) in Terminal, executed
cd /usr/local/texlive/texmf-local/tex/latex
sudo ln -s /Applications/Sage.app/Contents/Resources/sage/data/texmf/tex/generic/sagetex/sagetex.sty sagetex.sty
sudo mktexlsr
(3) Tried to compile an example of SageTex and seemingly nothing happened. I remembered I was not running Sage, so I started Sage.
(4) Got a pile of python errors in Terminal. Oh no!
(5) Looked at the TeXShop console and discovered an error message saying that Sage had gone missing and it looked like I'd tried to rename the Sage application and that this would Not Work.
(6) Renamed Sage.app to Sagemath-7.6.app.
Now Sage runs fine, but TeXShop says it can't find Sage! Help?smbelcasWed, 07 Jun 2017 20:45:36 +0200https://ask.sagemath.org/question/37828/
- TexShop sage.engine can't tell if running Sage is necessaryhttps://ask.sagemath.org/question/35835/texshop-sageengine-cant-tell-if-running-sage-is-necessary/I have switched from `sagetex.py` version `2012/01/16 v2.3.3-69dcb0eb93de` to version `2015/08/26 v3.0-92d9f7a`. When I compile a tex file using `sage.engine` it can't determine whether sage needs to run or not. I've narrowed this down to the if statement in `sage.engine`
# do we need to run Sage?
if [ -f "$soutname" ]
then
new_sum=$(egrep -v '^( _st_.goboom|print .SageT)' "$sagename" | md5)
old_sum=$(egrep -o ^%[0-9a-f]{32}% "$soutname" | cut -b 2-33)
if [ "$new_sum" != "$old_sum" ]
then
run_sage=yes
fi
else
# no .sout file, so run Sage
run_sage=yes
fi
I think the first `egrep` call should also eliminate lines containing `current_tex_line`. I've tried
new_sum=$(egrep -v '^( _st_.goboom|print .SageT)' "$sagename" | egrep -v '^( _st_.current_tex_line)' | md5)
but to no avail.
Any ideas would be much appreciated. Thanks.
Here is an **example**: the test.tex file
% !TEX TS-program = sage
\documentclass[12pt]{article}
\usepackage{sagetex}
\begin{document}
$2+3=\sage{2+3}$
\end{document}
produces among other things a `sagetex.sout` file that contains
% This file was *autogenerated* from test.sagetex.sage with
% sagetex.py version 2015/08/26 v3.0-92d9f7a
\newlabel{@sageinline0}{{%
5}{}{}{}{}}
%b22d43e1240df548df8cf6749b32284b% md5sum of corresponding .sage file (minus "goboom", "current_tex_line", and pause/unpause lines)
The `sage.engine` if statement should compare the md5 value of `sagetex.sage` minus a few lines to the md5sum in `sagetex.sout`.markusThu, 01 Dec 2016 06:06:03 +0100https://ask.sagemath.org/question/35835/
- Pb with SageTeXhttps://ask.sagemath.org/question/9836/pb-with-sagetex/ Hi
When I run Sage after TexShop on the file .sage created by TeX, I think that sagetex.sty works well, but, at the end of the process, I've got this error message below and it stops.
What's wrong?
Thanks u for your answer.
(PS: I'm beginner... and french!)
Last login: Sat Feb 23 15:04:21 on ttys002
/Applications/Sage-5.6-OSX-64bit-10.6.app/Contents/Resources/sage/sage /Users/janyphiphi/Desktop/example.sagetex.sage; exit
marx:~ janyphiphi$ /Applications/Sage-5.6-OSX-64bit-10.6.app/Contents/Resources/sage/sage /Users/janyphiphi/Desktop/example.sagetex.sage; exit
Processing Sage code for example.tex...
Inline formula 0
Inline formula 1
Inline formula 2
Inline formula 3
Code block begin...end
Inline formula 4
Inline formula 5
Inline formula 6
Code block begin...end
Inline formula 7
Inline formula 8
Code block begin...end
Traceback (most recent call last):
File "/Users/janyphiphi/Desktop/example.sagetex.py", line 69, in <module>
_st_.endofdoc()
File "/Applications/Sage-5.6-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagetex.py", line 282, in endofdoc
sagef = open(self.filename + '.sagetex.sage', 'r')
IOError: [Errno 2] No such file or directory: 'example.sagetex.sage'
logout
[OpĂ©ration terminĂ©e]PhGriffithsSat, 23 Feb 2013 09:19:23 +0100https://ask.sagemath.org/question/9836/
- sagetex after upgrade to sage 4.7.2https://ask.sagemath.org/question/8445/sagetex-after-upgrade-to-sage-472/Dear sage support group,
Let me start by thanking you for the recent advice which made it possible to use SageTeX with sage 4.7.1. I am so happy that I can use that.
However, after I upgraded to the new version of sage, sage 4.7.2, I can't get SageTeX to work again. I can't figure out what's wrong, and would greatly appreciate any help you might be able to give.
Here is what I did after installing sage 4.7.2 (app-version under Mac OS 10.6.8). The analogous setup worked for sage 4.7.1:
I copied the new version of the sagetex.sty-file coming with sage 4.7.2 to the folder ~/Library/texmf/tex/generic/sagetex/ and updated the call of sage in the sage.engine of TeXShop (the path to the application is correct, because it will start sage in a Terminal session).
With the new setup, according to the log file of TeXShop, sage is called when running the sage.engine of TeXShop, but still none of the output sage should produce for the example.tex-file provided is shown. Instead there are question marks. As might be expected one gets also lots of LaTeX warnings about undefined references.
What could be the problem?
Regards,
Udo Baumgartner oloidSat, 05 Nov 2011 14:46:35 +0100https://ask.sagemath.org/question/8445/