Hi David,
I haven't pushed this yet because I'm fine tuning the details of our
implementation. You're right, the problem with pngmath is that it needs
a latex environment to work and because of that it's probably slower.
However, since most scientists already have latex, I could add it later
as an option if there is enough demand. jsmath (which works on Sphinx
1.0 and below) is too old by now (compared to mathjax) and it has always
had font problems when you don't have latex installed.
I plan to push this work during the next week.
Cheers,
Carlos
El 28/02/12 04:56, David Verelst escribió:
Hi,
This looks very sweet indeed! Where is this implementation living?
Already in the default development branch or in your clone of the
spyder repo?
I assume the other Sphinx methods of rendering math, that is to PNG
files via Latex (sphinx.ext.pngmath), is a non go due to the dvi or
latex dependencies?
Regards,
David
On 27/02/12 14:44, Carlos Córdoba wrote:
Hi Jonatan,
Thanks, it looks good indeed!
I think you're right. Ubuntu 12.04 will include MathJax as a new
package, so we should include it as an optional dependency. For
Windows and Mac we can download it from the net if people wants to
use it offline. Of course this is more work for me, and that's
precisely what I was trying to avoid with a simple inclusion :-)
Cheers,
Carlos
El 27/02/12 03:50, Jonatan Hjul escribió:
Wow this looks awesome - that would definitely be a great addition.
I know MathJax is javascript - but maybe it could be an optional
dependency like Sphinx, rope, pylint etc..? Or maybe one could select
between disable, online rendering and offline rendering.
/Jonatan
On 24 Feb., 16:24, Carlos Córdoba<[email protected]> wrote:
After a couple of days of work I made that the object inspector could
render latex formulas in beautiful images using MathJax, a javascript
library for this purpose and for which Sphinx 1.1+ has a plugin.
Now my question is: should we include mathjax in the tree? We could
call
it from its location on the web but I'll be in favor of the
inclusion so
that this feature could work on any circumstance, i.e. on/offline.
Note
that mathjax would add around 4.5 MiB in size to Spyder.
Cheers,
Carlos
oi_latex.png
40KVisDownload
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/spyderlib?hl=en.