4 Steps
Though I’m a Mac user, viewing MathML on a Mac has been an unsatisfactory experience, as long as I’ve had this blog. Mostly, this is the result of a long-standing bug in Mac/Mozilla. Fortunately, the bug has recently been fixed.
So, herewith, are the steps to better viewing of MathML on the Mac.
- Get yourself a recent version of Mozilla or Firefox (Camino is not MathML-enabled).
- Install the Mathematica fonts and the Code2001 font on your system.
- Edit the or
~/Library/Mozilla/Profiles/default/XXXXXX.slt/user.js
[Mozilla]“~/Library/Application\ Support/Firefox/Profiles/default/XXXXXX.slt/user.js
[Firefox].XXXXXX
” is some random string unique to your installation. Add the lines
to theuser_pref("font.mathfont-family", "Math1,Math2,Math4"); user_pref("font.mathfont-family.\u2212.base", "Times");
user.js
file. - Now the tricky part. The bug was caused by a missing file. Eventually, the missing file will find its way into the distributed version of Mozilla/Firefox.
In the meantime, download it and install it inside the application by typingThe patch has landed in CVS, so grab the latest nightly build of Mozilla or Firefox.
orcp fontEncoding.properties /Applications/Mozilla.app/Contents/MacOS/res/fonts/
or whatever.cp fontEncoding.properties /Applications/Firefox.app/Contents/MacOS/res/fonts/
Now, if you have even a smidgen of appreciation for good typography, you will scream in pain at the ugly, ugly fonts I told you to install at step 2. Unfortunately, the release of the Stix fonts has been delayed yet again (not till mid-2006 at the earliest; but don’t hold your breath). And there remain various rendering problems, some of which are clearly related to the crappy, mismatched fonts, some of which may be actual bugs in Mozilla.
Still, what you’ll see, if you follow the above steps, will be legible, if not pretty. Which is a big improvement over the previous situation.
Re: 4 Steps
I’ve gotten pretty good results in Firefox 1.0 by turning off some of the fonts in Font Book:
Computer Modern: CMEX, and CMSY
Math 2
Math 4
I still get thick tops on square roots and some minus signs are missing, but everything is readable. That might be a quicker solution for some people and doesn’t require a beta version of the browser.
Gavin