views:

571

answers:

3

Is there an easy way to display math in the Safari web browser? My main target is the iPhone safari.

A: 

I'd check out MathML. A quick google search found this helpful page.

Dave DeLong
+2  A: 

According to this blog the webkit renders MathML combined with a certain stylesheet and xslt.

deau
So hopefully this means that Safari on Macs also support MathML. That will make my life easier for one project.
James Black
@James The webkit doesn't support MathML. CSS is used to render it using images as far as i'm aware.
deau
MathML support is underway in WebKit and you can see this in the project tracker and from recent activity in the source code repository. It looks like it is in its early stages. There is a concrete goal to implement a small, initial increment of support. It will not blow you away but I think being focused on one part to start with shows there is a serious desire to achieve something concrete.
JohnnySoftware
+1  A: 

Wikipedia's (mediawiki's) math rendering engine outputs simple HTML for simple math and PNGs when the math becomes more complex. The math itself is written using LaTeX, more on that here.

They apparently use texvc to render the math as PNG or HTML.

adamse
+1 - A more reliable and (I suspect) more browser compatible way than my suggestion.
deau