5 ms·
Mathjax
- christopherolah 17y agoThis came up on the sage (FOSS alternative to Mathematica and freinds) mailing lists and I thought I'd post it here. It always surprises me how difficult math on the Internet has turned out to be. Hopefully this can help...
- hyperbovine 17y agoMathML was supposed to be the answer, and we all know how that went. Just goes to show how over the top people were going with XML in the late 1990s. I mean, <math mode="display" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>x</mi> <mo>=</mo> <mfrac> <mrow> <mo form="prefix">−<!-- − --></mo> <mi>b</mi> <mo>±<!-- ± --></mo> <msqrt> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>−<!-- − --></mo> <mn>4</mn> <mo>⁢<!-- ⁢ --></mo> <mi>a</mi> <mo>⁢<!-- ⁢ --></mo> <mi>c</mi> </msqrt> </mrow> <mrow> <mn>2</mn> <mo>⁢<!-- ⁢ --></mo> <mi>a</mi> </mrow> </mfrac> </mrow> </math> to typeset the fucking quadratic formula?
- PaulTopping 17y agoMathML is not a human input language! MathML is a representation. While comparisons with TeX and LaTeX are inevitable, they serve different purposes. Look at the HTML/CSS used to render a dynamic menu sometime. I'm sure it is pretty ugly too.
- jwr 17y agoWe've been using jsMath on our FogBugz wiki internally for a while now. I'm very glad this is going mainstream. It's a lifesaver for companies that use wikis and do math.
- wkdown 17y ago503 ... anyone have a mirror?
- christopherolah 17y agoIt's fine for me, but you can always use the Google cache: http://74.125.93.132/search?q=cache:Xm1IG5QALKUJ:www.mathjax.org/+mathjax&cd=1&hl=en&ct=clnk&gl=ca&client=firefox-a http://74.125.93.132/search?q=cache:Xm1IG5QALKUJ:www.mathjax...
- christopherolah 17y agoIt would be neat if we could use something like this to render equations on HN...
- andreyf 17y agoNeat! But... Mathjax - Math JavaScript and XML?
- zackattack 17y agoAJAX is not about XML anymore. A lot of people use XHRs with JSON. AJAX now refers to the dynamic phenomenon. So their name is indeed appropriate. Evolution.
- blasdel 17y agoXMLHttpRequest : XML :: JavaScript : Java :: Hamster : Ham They never had anything to do with one another, it's just the module that Microsoft happened to dump it in.
- andreyf 17y agoThey never had anything to do with one another Not completely true... The X in XHR stands for XML, as that's what it parses natively [1], whereas parsing JSON wasn't native until relatively recently. JavaScript had Java's syntax. Not sure about hamsters and ham... 1. http://msdn.microsoft.com/en-us/library/ms534370(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms534370(VS.85).aspx
- blasdel 17y agoFrom your link: "responseXML was introduced in Windows Internet Explorer 7" - in October 2006. XHR was first shipped with Internet Explorer 5 - in March 1999! JavaScript's syntax is less like Java's than any other popular language that idiomatically uses curly-braces to delimit blocks. Hamster starts with Ham, but they are as unrelated as two things can be that exist in the same broad category (flesh).
- andreyf 17y agoYeah... giving them the benefit of the doubt, that's misleading wording: XMLHttpRequest is an object in the JS namespace as of IE7. Before that, you needed to import an ActiveX Object, which has supported requestXML since MSXML 2.0 (that's IE5). See: http://msdn.microsoft.com/en-us/library/ms757066(VS.85).aspx http://msdn.microsoft.com/en-us/library/ms757066(VS.85).aspx
- pmichaud 17y agoThis is really impressive-looking. I have at least one site that would benefit from this big time.
- snewe 17y agoIf you have a wordpress blog, wordpress.com will convert your latex to images using this plugin: http://wordpress.org/extend/plugins/wp-latex/ http://wordpress.org/extend/plugins/wp-latex/
- nanexcool 17y agoTab is crashing on Google Chrome 4.0.266.0 on Ubuntu.
- Confusion 17y agoHmmm, no problem in 4.0.249.30, from the recently released linux version on a Debian system.
- mreid 17y agoI guess mobile Safari is not one of the 20+ browsers that are supported at present. Anyone else not seeing rendered math on their iPhone?
- mhartl 17y agoYeah, so this is basically awesome. I've written a LaTeX-based markup language that I'm using for my Ruby on Rails Tutorial book (http://www.railstutorial.org/book http://www.railstutorial.org/book), but it's really designed for putting math & physics books on the web as HTML while still making nice PDFs. One big challenge I've faced is making nice HTML math typesetting, which I solved using texvc (the secret of Wikipedia's math typesetting), but unfortunately texvc is no good at inline math. I was not looking forward to solving that problem. Along comes MathJax, and now I don't have to! N.B. Being able to benefit from unexpected advances like this is exactly why I standardized on LaTeX, even though it's kind of a pain to convert it to HTML. If you're trying to solve the math typesetting problem and not using LaTeX, you're on the wrong (coughMathMLcough) track.
- PaulTopping 17y agoMathML allows math to be rendered to speech for people with disabilities, something that LaTeX won't do. It is also a much more solid REPRESENTATION. It is not an input language like LaTeX. Think of LaTeX as YOUR favorite math UI, whereas MathML is an underlying representation. The fact that you can View Source and read it is immaterial.
- PaulTopping 17y agoWord got out on MathJax a little early, as things tend to do on the web. We barely got a sample page up. Although it probably won't matter, our hope is you don't hammer MathJax too hard until we get things going and officially announce. Very soon now! Paul Topping Design Science, Inc. (one of the MathJax founders)
- slug 17y agoNice work! I can see the rendered formulas with firefox (3.5.5) but not with konqueror (kde 4.3.3).
- sandGorgon 17y agorenders perfectly with chromium-linux
- jacobolus 17y agoFor the in-line version, is it possible to get the baseline on an equation to align with the baseline of the surrounding text? In your current demo page they are a bit off.
- anigbrowl 17y agoThis is really great. Good work.
- cool-RR 17y agoVery exciting. This project looks impressive and I really hope it succeeds. Also, what would be really orgasmic is if it would be possible to type math in Latex inside the browser and see it displayed nicely like that. But this is probably asking for too much.
- gnosis 17y agoNow that they've gotten this far, what you describe can't be too far away.
- gfodor 17y agoWow.. this is the missing piece to the puzzle for a project I'm thinking about working on soon. Is this going to be open source?
- est 17y agoUndocumented Google Chart API for LaTeX: http://chart.apis.google.com/chart?cht=tx&chs=1x0&chf=bg,s,FFFFFF00&chco=000000&chl=$$$\LaTeX$$$ http://chart.apis.google.com/chart?cht=tx&chs=1x0&ch...
- deleted 17y ago[deleted]
- Jach 17y agoThat's cool it's grown out of jsMath; I've been pretty happy with that for a while now.
- PaulTopping 17y agoActually, MathJax.org is our preferred URL.