ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 20 Jan 2017 04:43:45 +0100Sage Os X app and MatPlotLib / LaTex connectionhttps://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/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.
MikeWed, 18 Jan 2017 03:42:45 +0100https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/Comment by kcrisman for <p>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.</p>
<p>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?</p>
<p>Thank you for your help.</p>
<p>Mike</p>
https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/?comment=36333#post-id-36333Are you referring to SageTeX? There is documentation for this at e.g. http://doc.sagemath.org/html/en/tutorial/sagetex.html - but I may be misunderstanding the question.Wed, 18 Jan 2017 03:47:17 +0100https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/?comment=36333#post-id-36333Comment by mhfrey for <p>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.</p>
<p>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?</p>
<p>Thank you for your help.</p>
<p>Mike</p>
https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/?comment=36350#post-id-36350No, I am referring to calling Latex from a Sage Notebook. It appears that the Sage app points to /usr/texbin, not /Library/TeX/texbin.Fri, 20 Jan 2017 04:32:31 +0100https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/?comment=36350#post-id-36350Answer by mhfrey for <p>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.</p>
<p>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?</p>
<p>Thank you for your help.</p>
<p>Mike</p>
https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/?answer=36351#post-id-36351As 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.
MikeFri, 20 Jan 2017 04:43:45 +0100https://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/?answer=36351#post-id-36351