ASCIIMathML.js (ver 2.0.2) download page

ASCIIMathML.js is freely available under the GNU Lesser General Public License. The current version is 2.0.2 (what's new).

It is very easy to use ASCIIMathML.js on your own webpages. If you use it on a webpage, please put a link to on that webpage and send me an email at with the URL so that I can add a link on the users page. (Also send me an email if you have problems or would like to provide some feedback.)

Here is the script: ASCIIMathML.js (right-click on the link and choose "Save Target As..." if your browser does not display the JavaScript code). The script, a copy of this page, and sample .html files are zipped at asciimath-2.0.2 on Logo (previous versions)

To write your own HTML file that uses ASCIIMathML.js, save your file with the standard .html extension and just load the ASCIIMathML.js script in the head of your HTML file. More explicitly, use the following lines at the top of your file:

<script type="text/javascript" src="ASCIIMathML.js"></script>
<title>your title...</title>

Note that ASCIIMathML.js should be in the same folder as your HTML file (alternatively include the full path to ASCIIMathML in the 3rd line above). If you want to use the graphing features you should also have the file d.svg in the same folder as the ASCIIMathML.js file (right-click it and choose Save As... -- otherwise people with Internet Explorer + the Adobe SVGview plugin cannot view the graphs -- Firefox 1.5/2.0+ will work either way).

That's it!

Here is a sample file that you can save and modify to suit your local needs. Right-click on the file and use Save Target As... to save this file (if you choose Save As ... while viewing the file, IE does not save the correct header information). Check that the HTML file is viewable by IE+MathPlayer and by Firefox 1.5/2.0+.

Note that usually Firefox/Mozilla does not display MathML in HTML files (only in XHTML files), but with ASCIIMathML it works no problem!

Here is some information on how to extend ASCIIMathML.js with additional symbols (this method may be preferable to editing the file ASCIIMathML.js).

Peter Jipsen, Chapman University, September 2011 Valid HTML 4.01!