topical media & game development

talk show tell print

lib-present-math-ascii-ASCIIMath-Email-Editor.htm / htm



  <html xmlns:mml="http://www.w3.org/1998/Math/MathML"><head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <title>ASCIIMath Email Editor</title>
  <script type="text/javascript" src="lib-present-math-ascii-ASCIIMath-Email-Editor-files-ASCIIMathML.js"></script>
  <script type="text/javascript" src="lib-present-math-ascii-ASCIIMath-Email-Editor-files-ASCIIMathMLeditor.js"></script>
  <style type="text/css">
  #menu, #title, #subtitle, #author {text-align: center}
  body {font-family: Arial}
  p, table {font-family: Times}
  </style></head><body onload="initEditor()" bgcolor="beige">
  <object id="mathplayer" classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
  </object>
  
  <div id="menu">
  | <a href="http://www1.chapman.edu/%7Ejipsen/mathml/asciimath.html">Home Page</a>
  | <a href="http://www1.chapman.edu/%7Ejipsen/mathml/asciimathsyntax.html">Syntax and constants</a>
  | <a href="http://www1.chapman.edu/%7Ejipsen/mathml/asciimathdemo.html">Try it yourself</a>
  | Editor
  | <a href="http://www1.chapman.edu/%7Ejipsen/mathml/asciimathdownload.phtml">Download</a> 
  | <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/%7Ejipsen/asciisvg.html">ASCIIsvg</a> |
  </div>
  
  <h4 id="subtitle">
  ASCIIMathML "Email Editor" 1.4 (This page requires Internet Explorer 6+<a href="http://www.dessci.com/en/products/mathplayer">MathPlayer</a> 
  or Mozilla/Firefox/Netscape 7+.)
  </h4>
  
  <p>
  Type (or paste) your text into the textarea. The display on
  the right updates after 20 keystrokes or whenever you click the update
  button. <b>Enclose all formulas with left-quotes or -signs (or 
  double-blanks if checkbox below is selected).</b>
  If you know (La)TeX formula syntax, you can use that as well
  (most basic formulas work). To <b>send your email</b>, copy (Ctrl-A Ctrl-C or
  equivalent) the ASCII text you typed and paste it into a "compose
  window" of your email program.
  <br>
  Select the layout that best fits your screensize: 
  <input value="800x600" onclick="AMchangeColumns(45)" type="button">
  <input value="1024x768" onclick="AMchangeColumns(58)" type="button">
  <input value="1400x1050" onclick="AMchangeColumns(81)" type="button">
  </p>
  
  <table>
  <tbody><tr><td><b>Type</b>&nbsp; &nbsp; &nbsp; &nbsp;
  <input id="doubleblank" checked="checked" onclick="AMsetDoubleBlank()" type="checkbox">
  Start/end math with double-blank</td><td><b>Display</b>&nbsp;
  <input value="Update" onclick="AMdisplay(true)" type="button">&nbsp;
  <input value="View MathML" onclick="AMviewMathML()" type="button">
  </td></tr>
  <tr><td>
  <form>
  <textarea id="inputText" rows="30" cols="58" onkeyup="AMdisplay(false)">Hi ...,
  
  Can you prove that if `ax^2+bx+c = 0` and `a!=0` then `x = (-b+-sqrt(b^2-4ac))/(2a)`?
  
  How about showing that the volume of a sphere is `V = 4/3 pi r^3`,
  
  or that `((a,b),(c,d))^-1 = 1/(ad-bc)((d,-b),(-c,a))`?
  
  (Replace with your own text...)
  
  -----------
  
  If you received the above text in an email, paste it at http://math.chapman.edu/email/ to display the math.
  
  </textarea>
  </form>
  </td><td valign="top">
  <div id="outputNode"></div></td></tr>
  </tbody></table>
  
  <b>Note that this is dynamic HTML running locally on your machine!
  If you leave or refresh this page before copying and saving
  your work, it may disappear.</b>
  
  <p>
  (Copy and paste the following lines to see what symbols they produce)<br>
  <b>You can use the following ASCIIMathML constructs:</b> 
  <tt> `(x+1)/(x-1) x^(i+j) x_(ij) sqrt(x) root(n)(x) text(any)`</tt><br>
  <b>Operation symbols</b> 
  <tt> `+ - * ** // \\ xx -: @ o+ ox sum prod ^^ ^^^ vv vvv nn nnn uu uuu`</tt><br>
  <b>Relation symbols</b>
  <tt> `= != &lt; &lt;= &gt; &gt;= -&lt; &gt;- in !in sub sup sube supe -= ~= ~~ prop`</tt><br>
  <b>Logical symbols</b><tt> `and or not =&gt; if iff AA EE _|_ TT |-- |==`</tt><br>
  <b>Miscellaneous symbols</b> 
  <tt> `int oint del grad +- O/ oo aleph ... cdots \  quad qquad diamond square |__ __| |~ ~| CC NN QQ RR ZZ`</tt><br>
  <b>Standard functions</b> 
  <tt> `sin cos tan csc sec cot sinh cosh tanh log ln det dim lim mod gcd lcm`</tt><br>
  <b>Grouping brackets</b><tt> `( ) [ ] { } (: :) {: :}` </tt> 
  <b>Arrows</b><tt> `uarr darr rarr -&gt; larr harr rArr lArr hArr` </tt><br>
  <b>Accents</b><tt> `hatx barx ulx vecx dotx ddotx` </tt>
  <b>Font commands</b><tt> `bbA bbbA ccA ttA frA sfA` </tt>
  <b>Matrices</b><tt> `[[a,b],[c,d]] ((1,0),(0,1))` </tt><br>
  <b>Greek letters</b><tt> `alpha beta chi delta Delta epsi eta gamma Gamma
  iota kappa lambda Lambda mu nu omega Omega phi Phi pi Pi psi rho sigma Sigma 
  tau theta Theta upsilon xi Xi zeta`</tt> 
  </p>
  
  <p>
  You are welcome to save this page locally on your computer
  (then it will also work without an active internet connection) or 
  on a webserver. In either case <b>right-click</b> on this link: 
  <a href="http://math.chapman.edu/email/index.html">Email Editor</a> and <b>use Save Target As...</b> to
  save this file (if you choose Save As ... while viewing the file, IE 
  does not save the correct header information). You should also copy the files 
  <a href="http://math.chapman.edu/email/ASCIIMathML.js">ASCIIMathML.js</a> and
  <a href="http://math.chapman.edu/email/ASCIIMathMLeditor.js">ASCIIMathMLeditor.js</a>, and put them
  in the same folder as the copy of this page, and please change 
  "http://math.chapman.edu/email/" in the textarea to the URL of your webpage.
  </p>
  
  
<div id="author"> <a href="http://www.chapman.edu/%7Ejipsen/">Peter Jipsen</a>, <a href="http://www.chapman.edu/">Chapman University</a>, July 2005 </div> </body></html>


(C) Æliens 27/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.