Ask Your Question
1

Setting up Sage on my mac, pdflatex not working

asked 11 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

ppurka gravatar image

updated 11 years ago

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.

Preview: (hide)
link

Comments

what is meant by PATH in your answer ?

mathcube gravatar imagemathcube ( 10 years ago )

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 ( 9 years ago )

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: 11 years ago

Seen: 9,926 times

Last updated: Sep 01 '13