Ask Your Question
0

Sage Os X app and MatPlotLib / LaTex connection

asked 2017-01-17 20:42:45 -0500

mhfrey gravatar image

updated 2017-01-18 01:50:32 -0500

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.

Mike

edit retag flag offensive close merge delete

Comments

Are you referring to SageTeX? There is documentation for this at e.g. http://doc.sagemath.org/html/en/tutor... - but I may be misunderstanding the question.

kcrisman gravatar imagekcrisman ( 2017-01-17 20:47:17 -0500 )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-19 21:32:31 -0500 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2017-01-19 21:43:45 -0500

mhfrey gravatar image

updated 2017-01-20 07:49:39 -0500

kcrisman gravatar image

As a workaround I found that adding:

if test -d /Library/TeX/texbin

then

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

fi

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

Mike

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

Stats

Asked: 2017-01-17 20:42:45 -0500

Seen: 87 times

Last updated: Jan 20