ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 20 Apr 2015 23:43:32 -0500Setting up Sage on my mac, pdflatex not workinghttps://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/Hello,
I am pretty sure that I have PDFLaTeX because it works when I use LyX but in sage I receive the following error when trying to use show():
sage: show(x)
Error: PDFLaTeX does not seem to be installed. Download it from
ctan.org and try again.
Latex error
Is there anything I can do to tell Sage where to look? BTW I am using Mac OSX 10.8Sat, 31 Aug 2013 15:41:29 -0500https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/Answer by ppurka for <p>Hello,</p>
<p>I am pretty sure that I have PDFLaTeX because it works when I use LyX but in sage I receive the following error when trying to use show():</p>
<pre><code>sage: show(x)
Error: PDFLaTeX does not seem to be installed. Download it from
ctan.org and try again.
Latex error
</code></pre>
<p>Is there anything I can do to tell Sage where to look? BTW I am using Mac OSX 10.8</p>
https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/?answer=15400#post-id-15400Maybe do a
$ which pdflatex
from the command line and note the path in which it is present. Then run
$ sage -sh
$ which pdflatex
to see if sage can find pdflatex. If it can not find, you need to add it to your `PATH`. But, if you can find pdflatex using the first `which` command, then you should be able to find it also from within sage.
It is also possible that Lyx is not using pdflatex, but it is first creating a ps file and then converting that to a pdf file. If so, then you need to figure out how to install pdflatex in Mac.Sat, 31 Aug 2013 20:12:14 -0500https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/?answer=15400#post-id-15400Comment by rsspdx for <p>Maybe do a</p>
<pre><code>$ which pdflatex
</code></pre>
<p>from the command line and note the path in which it is present. Then run</p>
<pre><code>$ sage -sh
$ which pdflatex
</code></pre>
<p>to see if sage can find pdflatex. If it can not find, you need to add it to your <code>PATH</code>. But, if you can find pdflatex using the first <code>which</code> command, then you should be able to find it also from within sage.</p>
<p>It is also possible that Lyx is not using pdflatex, but it is first creating a ps file and then converting that to a pdf file. If so, then you need to figure out how to install pdflatex in Mac.</p>
https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/?comment=26611#post-id-26611PATH is an environment variable listing the directories searched by default when running various commands. when you type
echo $path
in a shell (terminal), you will see that list. You can add a directory (let's say, /usr/texbin) to it like this:
export PATH = $PATH:/usr/texbinMon, 20 Apr 2015 23:43:32 -0500https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/?comment=26611#post-id-26611Comment by mathcube for <p>Maybe do a</p>
<pre><code>$ which pdflatex
</code></pre>
<p>from the command line and note the path in which it is present. Then run</p>
<pre><code>$ sage -sh
$ which pdflatex
</code></pre>
<p>to see if sage can find pdflatex. If it can not find, you need to add it to your <code>PATH</code>. But, if you can find pdflatex using the first <code>which</code> command, then you should be able to find it also from within sage.</p>
<p>It is also possible that Lyx is not using pdflatex, but it is first creating a ps file and then converting that to a pdf file. If so, then you need to figure out how to install pdflatex in Mac.</p>
https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/?comment=26282#post-id-26282what is meant by PATH in your answer ?Mon, 23 Mar 2015 03:13:12 -0500https://ask.sagemath.org/question/10492/setting-up-sage-on-my-mac-pdflatex-not-working/?comment=26282#post-id-26282