Testing your install
Click on the link below to check if you can display MathML webpages.
If not (Mozilla displays a message box complaining about some fonts missing) you have to install the fonts as described in the remainder of this page (original instructions was found here).
Xft enabled version of Mozilla
The solution describe here is for the Mozilla 1.6 installation that comes with the Fedora Core 2 distribution. One important point is that it is a Xft-enabled build. If you have installed a more recent version of Mozilla from the http://www.mozilla.org website, it is apparently not Xft-enabled. Go to this website instead: http://www.scottbolander.com/mozilla-xft.html.
Getting the fonts
Apparently, for some license reasons, I am not allowed to widely distribute the tarball containing the fonts needed. So you must download the package yourself. Login as root and download :
- Mathematica 4.1 fonts availabe here. Beware that this is the 4.1 version that you want (MathFonts_TrueType.exe)!
- TeX's Computer Modern Fonts available here.
- The Symbol Type 1 font from Acrobat Reader. If acroread is installed on you machine, you will find it under /usr/lib/acroread/Resource/Font/Symbol. Otherwise a copy is available here.
You can do the download by copy/pasting the following code in a xterm where root is logged.
cd /tmp wget http://support.wolfram.com/mathematica/systems/windows/general/MathFonts_TrueType.exe wget http://www.mozilla.org/projects/mathml/fonts/bakoma/texcm-ttf.zip wget http://artis.imag.fr/Membres/Xavier.Decoret/resources/mozilla/Symbol
Installing the fonts
Create a directory to put the downloaded fonts. I suggest /usr/lib/X11/fonts/mathml-fonts. Go to that directory and unzip the downloaded files. Note under Linux, unzip works well with .exe self-extractible archives. The following commands do the work.
mkdir /usr/lib/X11/fonts/mathml-fonts cd /usr/lib/X11/fonts/mathml-fonts unzip /tmp/texcm-ttf.zip unzip /tmp/MathFonts_TrueType.exe cp /tmp/Symbol .
Now you must notify Xft that this fonts are available. For that, edit the file /etc/fonts/local.conf to add the line
<dir>/usr/lib/X11/fonts/mathml-fonts/</dir>
You are done! Exit your Mozilla, start it again and it should display the test pages indicated earlier. If you want a complex example, have a look at http://www.mozilla.org/projects/mathml/start.xhtml.
Typesetting MathML
The MathML editor
There is a prototype editor for Mozilla. Go to the link below and install the latest xpi by cliking the appropriate link on the page. You must be running a Mozilla as root.
Then exit your Mozilla and sets the permission so that all users can use the MathML editor
chmod a+rx /usr/lib/mozilla-1.6/chrome/mathmled.jar
Start you Mozilla again (as a regular user) and go to Tools>Web Development>MathML Editor.