unconed / MathBox.js

MathBox is a (work in progress) library for making presentation-quality math diagrams in WebGL.
MIT License
1.94k stars 126 forks source link

Use TeXZilla when it is present (and MathJax absent). #19

Closed fred-wang closed 10 years ago

fred-wang commented 10 years ago

This uses TeXZilla when it is present (for example if one includes http://fred-wang.github.io/TeXZilla/TeXZilla-min.js) to convert the labels to native MathML. This should be more standard, faster and could probably help with the styling of labels. However, this obviously requires a standard-compliant browser. I tested it with WebKit and Gecko with the files in examples/.

fred-wang commented 10 years ago

As a side note you can use MathML in SVG and so in WebGL. For example this works in Gecko: http://www.maths-informatique-jeux.com/international/mathml-in-webgl/index.html

unconed commented 10 years ago

I'm not really a fan of MathML. The existing MathJax 'support' was just a hack that didn't work well anyhow, so I'm going to leave this out in favor of more proper equation / overlay / diagram support in Mathbox 2.