Ask Your Question

Sage Os X app and MatPlotLib / LaTex connection

asked 2017-01-18 03:42:45 +0200

mhfrey gravatar image

updated 2017-01-18 08:50:32 +0200

FrédéricC gravatar image

I have installed the Sage OS X app version 7.5.1 and I am having problems with MatPlotLib calls and LaTeX Calls from the Sage Os X. I have also built Sage from the sources and with MacTeX installed I can get the MatPlotLib and LaTeX calls to work properly when run from the sage I built.

How do I connect the Sage Os X app to the TeX files so I can get MatPlotLib graphs with text and properly formatted LaTeX calls to work?

Thank you for your help.


edit retag flag offensive close merge delete


Are you referring to SageTeX? There is documentation for this at e.g. - but I may be misunderstanding the question.

kcrisman gravatar imagekcrisman ( 2017-01-18 03:47:17 +0200 )edit

No, I am referring to calling Latex from a Sage Notebook. It appears that the Sage app points to /usr/texbin, not /Library/TeX/texbin.

mhfrey gravatar imagemhfrey ( 2017-01-20 04:32:31 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2017-01-20 04:43:45 +0200

mhfrey gravatar image

updated 2017-01-20 14:49:39 +0200

kcrisman gravatar image

As a workaround I found that adding:

if test -d /Library/TeX/texbin


        export PATH=$PATH:/Library/TeX/texbin


There is probably a better way, but I could not find where /usr/texbin is set in the sage source.


edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2017-01-18 03:42:45 +0200

Seen: 409 times

Last updated: Jan 20 '17