ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 09 Nov 2017 14:14:01 -0600Problems with Sagetex under Texshophttp://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'
RickMon, 14 Nov 2011 10:12:22 -0600http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/Answer by 56phil for <p>Hi,</p>
<p>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: <a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a></p>
<p>Any hint appreciated. </p>
<p>Keep on rocking'</p>
<p>Rick</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=39387#post-id-39387Found that sage.engine was looking for the "app" version of Sage. Changed the path from "/Applications/SageMath-7.6.app/Contents/Resources/sage/sage" to match the actual location of Sage. Now TexShop works with SageMath.Fri, 03 Nov 2017 05:48:36 -0500http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=39387#post-id-39387Comment by kcrisman for <p>Found that sage.engine was looking for the "app" version of Sage. Changed the path from "/Applications/SageMath-7.6.app/Contents/Resources/sage/sage" to match the actual location of Sage. Now TexShop works with SageMath.</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=39463#post-id-39463Good! (Which version of this are you answering?)Thu, 09 Nov 2017 14:14:01 -0600http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=39463#post-id-39463Answer by niles for <p>Hi,</p>
<p>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: <a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a></p>
<p>Any hint appreciated. </p>
<p>Keep on rocking'</p>
<p>Rick</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=12902#post-id-12902First, the instructions seem to indicate that if you copy the file `sagetex.sty` into a directory with your latex file, then the system will be able to find it. Can you first verify that this is the case?
After that, can you try putting sagetex.sty in the default search location? On the mac, that's `~/Library/texmf`, so I guess you should put `sagetex.sty` in `~/Library/texmf/tex/generic/sagetex/`. Note that a new "feature" in Mac 10.6 makes the `Library` directory hidden. You can navigate to in with the `Terminal`, or select it from the `Go` menu (you have to hold down the `Option` key to see it).
Edit by kcrisman: with the upgrade to [SageTeX 3.0](http://trac.sagemath.org/ticket/19072), the default location in Sage will in fact be `$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/` which should be placed in `~/Library/texmf/tex/latex/sagetex/`, I believe.Mon, 14 Nov 2011 14:28:50 -0600http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=12902#post-id-12902Comment by qgfreire for <p>First, the instructions seem to indicate that if you copy the file <code>sagetex.sty</code> into a directory with your latex file, then the system will be able to find it. Can you first verify that this is the case?</p>
<p>After that, can you try putting sagetex.sty in the default search location? On the mac, that's <code>~/Library/texmf</code>, so I guess you should put <code>sagetex.sty</code> in <code>~/Library/texmf/tex/generic/sagetex/</code>. Note that a new "feature" in Mac 10.6 makes the <code>Library</code> directory hidden. You can navigate to in with the <code>Terminal</code>, or select it from the <code>Go</code> menu (you have to hold down the <code>Option</code> key to see it).</p>
<p>Edit by kcrisman: with the upgrade to <a href="http://trac.sagemath.org/ticket/19072">SageTeX 3.0</a>, the default location in Sage will in fact be <code>$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/</code> which should be placed in <code>~/Library/texmf/tex/latex/sagetex/</code>, I believe.</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=38220#post-id-38220Thanks hsigrist!Tue, 11 Jul 2017 10:32:28 -0500http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=38220#post-id-38220Comment by kcrisman for <p>First, the instructions seem to indicate that if you copy the file <code>sagetex.sty</code> into a directory with your latex file, then the system will be able to find it. Can you first verify that this is the case?</p>
<p>After that, can you try putting sagetex.sty in the default search location? On the mac, that's <code>~/Library/texmf</code>, so I guess you should put <code>sagetex.sty</code> in <code>~/Library/texmf/tex/generic/sagetex/</code>. Note that a new "feature" in Mac 10.6 makes the <code>Library</code> directory hidden. You can navigate to in with the <code>Terminal</code>, or select it from the <code>Go</code> menu (you have to hold down the <code>Option</code> key to see it).</p>
<p>Edit by kcrisman: with the upgrade to <a href="http://trac.sagemath.org/ticket/19072">SageTeX 3.0</a>, the default location in Sage will in fact be <code>$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/</code> which should be placed in <code>~/Library/texmf/tex/latex/sagetex/</code>, I believe.</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=28704#post-id-28704There are a lot of interesting issues with the `~/Library` directory; see http://www.macworld.com/article/1161156/view_library_folder_in_lion.html and http://www.macworld.com/article/2057221/how-to-view-the-library-folder-in-mavericks.htmlSat, 25 Jul 2015 09:26:31 -0500http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=28704#post-id-28704Comment by hsigrist for <p>First, the instructions seem to indicate that if you copy the file <code>sagetex.sty</code> into a directory with your latex file, then the system will be able to find it. Can you first verify that this is the case?</p>
<p>After that, can you try putting sagetex.sty in the default search location? On the mac, that's <code>~/Library/texmf</code>, so I guess you should put <code>sagetex.sty</code> in <code>~/Library/texmf/tex/generic/sagetex/</code>. Note that a new "feature" in Mac 10.6 makes the <code>Library</code> directory hidden. You can navigate to in with the <code>Terminal</code>, or select it from the <code>Go</code> menu (you have to hold down the <code>Option</code> key to see it).</p>
<p>Edit by kcrisman: with the upgrade to <a href="http://trac.sagemath.org/ticket/19072">SageTeX 3.0</a>, the default location in Sage will in fact be <code>$SAGE_ROOT/local/share/texmf/tex/latex/sagetex/</code> which should be placed in <code>~/Library/texmf/tex/latex/sagetex/</code>, I believe.</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=24249#post-id-24249Don't forget run 'sudo texhash' in terminal.Mon, 22 Sep 2014 09:00:50 -0500http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=24249#post-id-24249Answer by Dima for <p>Hi,</p>
<p>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: <a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a></p>
<p>Any hint appreciated. </p>
<p>Keep on rocking'</p>
<p>Rick</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=12906#post-id-12906The instructions are written with Linux in mind, which would normally run a de facto standard TeX implementation called [TeXLive](www.tug.org/texlive/) (or an older one, albeit quite similar, called teTeX). I didn't use TeXshop (which is IDE to run LaTeX) for many years; google tells me that actually it uses TeXLive, so you are all set in this sense.
Sagetex is meant to be run at the shell prompt. If you do it at the shell prompt, then put sagetex.sty in your working directory (there are better ways, but this one should typically work, too), open the Terminal, and run `latex yourfile`. Then run Sage, as described [here](http://www.sagemath.org/doc/tutorial/sagetex.html).
(needless to say, sagetex.sty is pretty much useless without Sage installed).
Tue, 15 Nov 2011 04:29:12 -0600http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=12906#post-id-12906Answer by ron.bannon for <p>Hi,</p>
<p>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: <a href="http://www.sagemath.org/doc/installation/sagetex.html">http://www.sagemath.org/doc/installat...</a></p>
<p>Any hint appreciated. </p>
<p>Keep on rocking'</p>
<p>Rick</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=23547#post-id-23547Open this folder `~/Library/TeXShop/Engines/Inactive/Sage/` and follow the instructions in `About Sage.pdf` and all should work fine. Make sure you have the Sage.app version installed.
For $TeX$Shop users needing more assistance, I have written a ~50 page [guide](http://devio.us/~bannon/sage/) that should help.Wed, 23 Jul 2014 08:48:18 -0500http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?answer=23547#post-id-23547Comment by kcrisman for <p>Open this folder <code>~/Library/TeXShop/Engines/Inactive/Sage/</code> and follow the instructions in <code>About Sage.pdf</code> and all should work fine. Make sure you have the Sage.app version installed.</p>
<p>For $TeX$Shop users needing more assistance, I have written a ~50 page <a href="http://devio.us/~bannon/sage/">guide</a> that should help.</p>
http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=23715#post-id-23715We should probably have a link to this guide, which is a nice compilation of material that fits well together but is not usually found together, as well as an example in itself, somewhere on a subpage of http://sagemath.org/library.html - but I'm not sure exactly where...Fri, 08 Aug 2014 03:19:54 -0500http://ask.sagemath.org/question/8472/problems-with-sagetex-under-texshop/?comment=23715#post-id-23715