Ask Your Question
1

Setting up Sage on my mac, pdflatex not working

asked 2013-08-31 22:41:29 +0100

colin.fraser gravatar image

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.8

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-09-01 03:12:14 +0100

ppurka gravatar image

updated 2013-09-01 03:12:29 +0100

Maybe 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.

edit flag offensive delete link more

Comments

what is meant by PATH in your answer ?

mathcube gravatar imagemathcube ( 2015-03-23 09:13:12 +0100 )edit

PATH 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/texbin

rsspdx gravatar imagersspdx ( 2015-04-21 06:43:32 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-08-31 22:41:29 +0100

Seen: 9,886 times

Last updated: Sep 01 '13