MathML in Blogger
Hi.
As you can probably see, my newly born blog is mainly in Greek. Despite this fact, I intend to keep a HOWTOs category in English, where I will publish information that I guess would be useful to a broader audience. This is the first such post, and it is pertinent to the ability to publish mathematical formulas in a Blogger powered blog.
This was a feature that I missed immediately as my blog will gradually evolve to a reference around anything computational finance. Therefore, inevitably some notation was needed. As I work with Firefox on a Mac, I noticed that MathML code would not be properly rendered. This is due to the fact, at least AFAIK, that Mozilla renders MathML in *.xhtml pages, while Blogger publishes *.html. As we do not have a way to change this, I came upon a solution which is unexpectdly elegant and efficient, ASCIIMathML.
I invite you to visit the site of this project. The interesting thing is that the dynamic nature of the javascript provided, "tricks" Mozilla into properly rendering MathML, even if our page is html. Furthermore, it provides the scientific blogger with an easy and delicate way to type the formulas. I have not looked into the matter further, but I guess that an equivalent script could be written to publish LaTEX formulas.
Oh! and I should not forget to tell you how to install this script. Well you go to the aforementioned site and download ASCIIMathML.js . You should put it online somewhere, I used my pages.google.com account but a nice solution I have recently found is Orbitfiles. Then,
just add the following between your <head> </head> in your template:
<script type="text/javascript" src="/path to your/ASCIIMathML.js"></script>
That is about it. This solution will work under IE with MathPlayer and under Firefox. Ooops, I forgot. In the case of Firefox you also have to download the appropriate fonts.
Ολόκληρο το άρθρο...


