Live data from Hacker News

MathJax, beautiful math in all browsers

mathjax.org

11–20 of 37 posts

Re: MathJax, beautiful math in all browsers

#11
post #5

Very nice, I'm looking forward to usinig it. So I thought I'd check the license to see if it's compatible with what I envision. The documentation page just says "Open Source", the FAQ and download pages nothing at all. The release announcement at http://www.mathjax.org/2010/01/12/news/mathjax-beta-released... finally says "Apache 2.0 open source license". Note to other developers: don't hide your license -- it's a pi…

It is Apache 2.0: http://sourceforge.net/projects/mathjax/ . You'll need to click on the barely visible "Show project details" link at the right hand side under the download link.

Re: MathJax, beautiful math in all browsers

#13
post #6

Sometimes, when the ol' fever comes back and nobody's there to remind me that we have come to accept HTML/CSS, I dream of a world wide web built on TeX and TeX alone. It's a place of wonder, and happiness, and river-less paragraphs. Then I wake up, sweating, screaming, to a world without proper hyphenation. XeTeX is my XaNaX. Makes the web-pain go away. [MathJax, on the other hand, looks glorious. Many thanks to the…

If you're bothered by rivers and lack of hyphenation, check out a project I worked on a while ago, which implements the Knuth and Plass line breaking algorithm in JavaScript. Combined with Hyphenator.js, the results are nearly indistinguishable from TeX output.

http://www.bramstein.com/projects/typeset/flatland/

Earlier incarnations made it to HN before, but unlike the old version this renders in plain HTML instead of Canvas, so text can be selected, copied, etc.

Re: MathJax, beautiful math in all browsers

#16

I use MathJax on one site I'm developing. It has two problems related to speed: 1. It is so modular that you cannot really optimize it using something like Google Closure ( http://code.google.com/closure/ ). If you do, it breaks it. 2. The modularity means that you're likely to need a few roundtrips to the server to get everything. Invariably these block the loading of the page and you get a hang, sometimes for a few…

Firefox requires pages that use MathML, SVG, or any other markup that exists outside the HTML namespace to be presented in XML, because HTML4 doesn't have any way to declare that an element exists in a non-default namespace.

HTML5 doesn't have a way to declare specific namespaces either, but it does make special exceptions for including MathML and SVG elements in HTML content: putting a or element in your HTML document creates an "island" of MathML or SVG markup:

http://www.whatwg.org/specs/web-apps/current-work/multipage/...

Firefox 4 includes an HTML5 parser by default, so your glorious future is one step closer.

Re: MathJax, beautiful math in all browsers

#18
post #6

Sometimes, when the ol' fever comes back and nobody's there to remind me that we have come to accept HTML/CSS, I dream of a world wide web built on TeX and TeX alone. It's a place of wonder, and happiness, and river-less paragraphs. Then I wake up, sweating, screaming, to a world without proper hyphenation. XeTeX is my XaNaX. Makes the web-pain go away. [MathJax, on the other hand, looks glorious. Many thanks to the…

If you're bothered by rivers and lack of hyphenation, check out a project I worked on a while ago, which implements the Knuth and Plass line breaking algorithm in JavaScript. Combined with Hyphenator.js, the results are nearly indistinguishable from TeX output. http://www.bramstein.com/projects/typeset/flatland/ Earlier incarnations made it to HN before, but unlike the old version this renders in plain HTML instead o…

I cannot upvote you enough. I wonder if I can hack this onto my wordpress blog.

Re: MathJax, beautiful math in all browsers

#19

I use MathJax on one site I'm developing. It has two problems related to speed: 1. It is so modular that you cannot really optimize it using something like Google Closure ( http://code.google.com/closure/ ). If you do, it breaks it. 2. The modularity means that you're likely to need a few roundtrips to the server to get everything. Invariably these block the loading of the page and you get a hang, sometimes for a few…

However, when you see the MathML rendering of Firefox, you immediately see why something like MathJax is still _required_. We would need widespread support for MathML rendering that is actually readable. That will take another while.

Re: MathJax, beautiful math in all browsers

#20
post #6

Sometimes, when the ol' fever comes back and nobody's there to remind me that we have come to accept HTML/CSS, I dream of a world wide web built on TeX and TeX alone. It's a place of wonder, and happiness, and river-less paragraphs. Then I wake up, sweating, screaming, to a world without proper hyphenation. XeTeX is my XaNaX. Makes the web-pain go away. [MathJax, on the other hand, looks glorious. Many thanks to the…

If you're bothered by rivers and lack of hyphenation, check out a project I worked on a while ago, which implements the Knuth and Plass line breaking algorithm in JavaScript. Combined with Hyphenator.js, the results are nearly indistinguishable from TeX output. http://www.bramstein.com/projects/typeset/flatland/ Earlier incarnations made it to HN before, but unlike the old version this renders in plain HTML instead o…

Why is this not widely known? Amazing stuff.
Post reply on HN