Skip to main content
Search IntMath
Close

ASCIIMath input, LaTeX and KaTeX output

This page demonstrates easy math input (via ASCIIMath), with output in 2 formats: LaTeX, and KaTeX. You can use it to produce LaTeX for other environments while reducing some typing tedium. ("ASCII" just means ordinary keyboard characters & AsciiMath is a math input system using calculator-like syntax.)

Instructions

This is a "sandbox" where you can try out math entry.

You can enter your ASCIIMath math in the box on the left, and the resulting LaTeX and KaTeX math will appear on the right.

(No need to include any backtick delimiters, as seen on the related pages, ASCIIMath input, KaTeX output and Send math in emails.)

You can choose the required delimiter for your LaTeX.

Click on the LaTeX output and it will select all of it, ready for copying. (Use <Ctrl>-C on Windows, or <Cmd>-C on Mac.)

Enter math here
(using ASCIIMath)

LaTeX output appears here

Choose LaTeX delimiter:

$...$ $$...$$ \[...\] (none)

KaTeX math output appears here

ASCIIMath syntax examples

Try some of the following in the box above (you can copy-paste). Remember, surround the math with backticks (`), not single quotes (').

ASCIIMath syntax Description
x^2+y_1+z_12^34 Subscripts and superscripts
d/dxf(x)=lim_(h->0)(f(x+h)-f(x))/h Fractions and limits
f(x)=sum_(n=0)^oo(f^((n))(a))/(n!)(x-a)^n Summation
int_0^1f(x)dx Integration
[[a,b],[c,d]]((n),(k)) Matrices
x/x={(1,if x!=0),(text{undefined},if x=0):} Piecewise defined functions
sqrt sqrt root3x Nested square roots
hat(ab) bar(xy) ulA vec v dotx ddot y Accents (hats and bars)
stackrel"def"= or \stackrel{\Delta}{=}" "("or ":=) Stacking

[Table based on: Peter Jipsen's source]

See a more extensive list of ASCIIMath syntax for those special symbols you're looking for.

What can you do with this?

I use the above for writing and editing math documents. It is considerably faster than using images, or LaTeX. Once I have my document using ASCIIMath, I can just copy it to my HTML page.

This would be an excellent system for a math discussion board, or for working on collaborative math documents.

It's also a very easy way to publish math documents on the Web (which can also be saved in MS Word format, if you must). Easy input, and nice math output on all browsers, even Internet Explorer!

Communicating math on the Web should not be a huge chore!

Further Information

Enter math in emails, forums and Web pages using ASCIIMath, which leads to: Send an email containing math.

MathJax - render math on the Web on all browsers

Comparison of jsMath ASCIIMath, PHPMathPublisher, MathJax and MathTeX

Credits

Thank you to the following people:

  • Peter Jipsen of Chapman University for ASCIIMath ("Easily produce good-looking math formulas on webpages using a simple calculator-style syntax")
  • The team who created MathJax ("Beautiful math in all browsers") and who incorporated ASCIIMath (this page originally used MathJax)

Tips, tricks, lessons, and tutoring to help reduce test anxiety and move to the top of the class.

top