<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" 
href="http://www1.chapman.edu/~jipsen/mathml/pmathml.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:mml="http://www.w3.org/1998/Math/MathML">
<html>
<head>
<title>ASCIIMathML download page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">#menu, #title, #author, .display {text-align: center}
body {font-family: Arial}
</style>
</head>
<body>

<div id="menu">|
<a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.xml">Home Page</a> |
<a href="http://www1.chapman.edu/~jipsen/mathml/asciimathsyntax.xml">Syntax</a> |
<a href="http://www1.chapman.edu/~jipsen/mathml/asciimathdemo.xml">Try it</a> |
<a href="http://www1.chapman.edu/~jipsen/mathml/asciimathcalculator.html">Calculator</a> |
<a href="http://www.chapman.edu/~jipsen/mathml/asciimatheditor.xml">Editor</a> |
Download |
<a href="http://math.chapman.edu/cgi-bin/mathxml.pl?ASCIIMath_FAQ">ASCIIMath FAQ</a> |
<a href="http://math.chapman.edu/cgi-bin/mathxml.pl?ASCIIMath_Sandbox">Sandbox</a> |
<a href="http://math.chapman.edu/cgi-bin/mathxml.pl?ASCIIMath_Comments_and_Suggestions">Comments</a> |
<a href="http://www.chapman.edu/~jipsen/asciisvg.html">ASCIIsvg</a> |
</div>

<hr/>

<h2 id="title">ASCIIMathML.js (ver 1.4.7) download page</h2>

<p>
<b>ASCIIMathML.js</b> is freely available under the <a
href="http://www.gnu.org/copyleft/gpl.html">GNU General Public
License</a>. The current version is 1.4.7 (<a 
href="asciimathchanges.txt">what's new</a>).
</p>

<p>
If the instructions on this page seem complicated, don't worry. 
You only have to do this the first time you want to use
ASCIIMathML.js on your own webpages. If you use it on a webpage,
<b>please put a link to <a 
href="http://www1.chapman.edu/~jipsen/asciimath.xml">www.chapman.edu/~jipsen/asciimath.xml</a> on that
webpage</b> and send me an email at <a
href="mailto:jipsen@chapman.edu">jipsen@chapman.edu</a> 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.)
</p>

<p>
Here is the script: <a
href="http://www1.chapman.edu/~jipsen/mathml/ASCIIMathML.js">ASCIIMathML.js</a>
(right-click on the link and choose "Save Link Target As..." if your
browser does not display the JavaScript code).
</p>

<p>
To make your XHTML file work in both Internet Explorer 6+<a 
href="http://www.dessci.com/en/products/mathplayer/welcome.asp">MathPlayer</a>
and Mozilla/Netscape 7+, you should also download David Carlisle's
<tt>pmathml.xsl</tt> stylesheet at <a
href="http://www.w3.org/Math/XSL/pmathml.xsl">http://www.w3.org/Math/XSL/pmathml.xsl</a> (right-click on the link and choose "Save Link Target As...").
Or get both files bundled together: The script, a copy of this 
page, and sample .html and .xml files are zipped (or tar'd) at 
<a href="https://sourceforge.net/projects/asciimathml/">asciimathml-1.4.7</a> 
on <a href="http://sourceforge.net">
<img src="http://sourceforge.net/sflogo.php?group_id=106148&amp;type=1" 
width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
</p>

<p>
Just save both files in a local folder on your computer or your
webserver.
</p>

<p>
To write your own XHTML file that uses ASCIIMathML.js, give the file a
<b>name that ends with <tt>.xml</tt></b> and use the following lines
at the top of your file:
</p>

<pre style="border-style:groove">&lt;?xml version="1.0"?>
&lt;?xml-stylesheet type="text/xsl" href="http://yourdomain/yourpathto/pmathml.xsl"?>
&lt;html xmlns="http://www.w3.org/1999/xhtml">
&lt;head>
&lt;script type="text/javascript" src="http://yourdomain/yourpathto/ASCIIMathML.js">&lt;/script>
&lt;title>your title&lt;/title>
&lt;/head>
&lt;body>
</pre>

<p>
Of course you should fill in the "yourdomain/yourpathto" part with the
correct information (or delete <tt>http://yourdomain/yourpathto/</tt> and
put ASCIIMathML.js and pmathml.xsl in the same folder as your XHTML file), 
and end your file with
</p>

<pre style="border-style:groove">&lt;/body>
&lt;/html>
</pre>

<p>
Since cross-browser MathML only works with XHTML files, remember to
write all tags in lowercase, use matching opening and closing tags
(like &lt;p>&lt;/p>), and write empty tags with a trailing slash (like
&lt;hr/>).
</p>

<p>
Well, actually with ASCIIMathML one can now also get cross-browser 
MathML rendered on HTML pages, see 
<a href="asciimath.html">asciimath.html</a>.
</p>

<b>That's it!</b>

<p>
Here is a <a href="asciimathsample.xml">sample 
file</a> that you can save and modify to suit your local needs.
</p>

<p>
Finally, some information on how to <a href="asciimathextend.xml">extend 
ASCIIMathML.js with additional symbols</a> (this method may be preferable 
to editing the file ASCIIMathML.js).
</p>

<hr/>

<div id="author">
<a href="http://www1.chapman.edu/~jipsen/">Peter Jipsen</a>, 
<a href="http://www.chapman.edu/">Chapman University</a>, August 2005

<a href="http://validator.w3.org/check/referer"><img border="0"
src="http://www.w3.org/Icons/valid-html401"
alt="Valid HTML 4.01!" height="31" width="88"></a>
</div>

<hr/>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2263958-1";
urchinTracker();
</script>
</body>
</html>
