MathML Blogs

Saturday, April 16, 2011

MathJax

This blog does not use MathJax. This blog was created to demonstrate how MathML can be rendered in blogger blogs in IE and Fire Fox. This blog still works in IE and Fire Fox. For IE, you will need MathPlayer. If using IE9, you may want to turn on the compatibility mode otherwise it won't render MathML even with MathPlayer installed.

I have created 2 blogs to demonstrate how one can use MathJax in blogger blogs to render MathML and also Tex. They are

Special Products Examples

and

Learning Tex

The first blog shows the best way to include MathJax script in the headers. You can examine the headers to find that out.

The second blog is there to test out various Tex code using MathJax. To tell the truth, I don't know Tex and I want to learn Tex. So, the title of the blog is Learning Tex. This blog has Tex code only. And, it gets rendered fine just about in any browsers, IE, Fire Fox, Chrome and Safari to name a few. It crashes my old Palm T/X though.

Saturday, March 26, 2011

MathJax

I have been testing MathJax since last 2 days. Its impressive and a great solution to display Math content in any browser including those in smartphones. I have seen it working in Internet Explorer, Fire Fox, Safari and Chrome. The rendering is beautiful.

The Math content can be authored in various formats including MathML and Tex and perhaps in other simple math formats.

All it takes to use MathJax is to include a few lines of code in the header of the document in between the <head> and </head> tags. Below are the code:

<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

As you can see, the actual script, which is significantly large, resides in the Content Distribution Network and is utilized in your web pages. One can download the code and install in one's own web server. Even in that case, you will have to use the above 3 lines of code, but you have to change the src attribute to point to your own server address. However, if you are hosting Math content in blogs as this one hosted in server where you do not have control, or simply because you do not want to install the code in your own web server, you are really free to use the code off the CDN.

Please visit the website for MathJax to learn more.

Thursday, March 24, 2011

One final observation about compatibility view settings

Even though I did not have blogspot.com specifically included, there was a checkmark that allowed a list of websites to be included in the compatibility view settings. They are not directly listed in the dialog box, but they all are listed somewhere on the web, and IE checks if a site is in that list to apply compatibility view.

This is the reason why MathML is rendered by IE9. In the absense of compatibility view, IE9 is not displaying MathML.

Wednesday, March 23, 2011

Maybe not

I don't have compatibility view enabled, yet IE 9 is displaying MathML.

Just a few hours ago, I had tried and it was not displaying without the compatibility view enabled.

Now, I am not sure what is going on. I will keep checking.

I spoke too soon.

blogspot.com was in my compatibility view settings. As a result it was displaying MathML in IE9. Without the compatibility view settings, it will not display MathML.