First time here? Check out the FAQ!

Ask Your Question
2

pdflatex not available from Jupyter in SageMath-8.1.app

asked 6 years ago

Pascal Weil gravatar image

I am using SageMath-8.1.app with OSX 10.13.5 and pdflatex is available on my system:

(sage-sh) :SageMath-8.1.app$ which pdflatex
/Library/TeX/texbin/pdflatex

But in Jupyter, pdf latex is not available:

view(g)
Error: PDFLaTeX does not seem to be installed.  Download it from
ctan.org and try again.
Latex error

also:

!pdflatex
/bin/sh: pdflatex: command not found

Here is the value of PATH:

import os
os.environ['PATH']
'/Applications/SageMath-8.1.app/Contents/Resources/sage/local/libexec/ccache:/Applications/SageMath-8.1.app/Contents/Resources/sage/build/bin:/Applications/SageMath-8.1.app/Contents/Resources/sage/src/bin:/Applications/SageMath-8.1.app/Contents/Resources/sage/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'

How to modify the PATH of the app?

Preview: (hide)

Comments

Sébastien gravatar imageSébastien ( 6 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 6 years ago

j.c. gravatar image

There are some suggestions in this question.

However, the easiest thing to do might be to create a sagerc file per this page (I guess the default location is ~/.sage/sagerc) containing: export PATH = "$PATH:/Library/TeX/texbin/pdflatex"

Preview: (hide)
link

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

Seen: 1,235 times

Last updated: Jun 07 '18