Ask Your Question
0

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.

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-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
2

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

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-18 03:42:45 +0200

Seen: 408 times

Last updated: Jan 20 '17