TeX directly to SVG

27 views
Skip to first unread message

Jay

unread,
Feb 27, 2015, 8:39:17 PM2/27/15
to mathja...@googlegroups.com
Is it possible to use MathJax to convert from (La)TeX directly (and synchronously) to SVG? That is, I would like like to bypass MathJax's DOM scanning and manipulation routines and do something like:

svg = texToSvg('y=3x^2-5x+2');

where svg is either a string representation or a DOM object that can be inserted wherever I like. Since MathJax has do something like this anyway, it seems like it should be fairly easy, but I can't see past the higher level interface.

Thanks,
Jay

Peter Krautzberger

unread,
Feb 28, 2015, 1:03:29 AM2/28/15
to mathja...@googlegroups.com
Hi,

Is it possible to use MathJax to convert from (La)TeX directly (and synchronously) to SVG?

No, but https://github.com/mathjax/MathJax-node comes close if you're in nodejs.

Since MathJax has do something like this anyway


 That is, I would like like to bypass MathJax's DOM scanning and manipulation routines

The DOM is crucial to what MathJax, as a MathML polyfill, does. You cannot bypass it completely.

Regards,
Peter.

--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages