AsciiMath Syntax Guide
AsciiMath is an easy-to-write markup language for mathematics. It is designed to be highly readable, making it faster to type than standard LaTeX for many common expressions.Feel free to edit the Markdown blocks below to see the equations update live!
1. Using AsciiMath in xyzEditor
In xyzEditor, AsciiMath is typically written inside a fenced code block with the language set to am or asciimath.
Here is the quadratic formula in a block:
You can mix regular text with AsciiMath blocks easily!
Tip for Inline AsciiMath:If you enable the "AsciiMath Code Override" in the xyzEditor settings (or click the am icon in the toolbar), you can write inline AsciiMath using standard single backticks (e.g., \`x^2\`).
2. Basic Operations & Fractions
AsciiMath uses intuitive symbols for standard operations. Notice how fractions are automatically formatted when you use the forward slash (/). Use parentheses to group numerator and denominator terms.
Basic Arithmetic:
Multiplication alternatives:
Fractions (parentheses disappear in the output!):
3. Superscripts, Subscripts & Roots
Use the caret (^) for superscripts and underscore (_) for subscripts.
Powers and Indices:
Square roots:
N-th roots:
4. Greek Letters & Constants
Simply type the phonetic name of the Greek letter or constant.
Greek Letters:
Infinity:
5. Relations, Logic & Arrows
AsciiMath converts standard textual representations of logic and arrows into their mathematical equivalents.
Inequalities:
Logic and Set Theory:
Arrows:
6. Integrals, Sums & Limits
AsciiMath shines when writing complex calculus. Subscripts and superscripts automatically attach as limits to the int, sum, and lim operators.
Integrals:
Sums and Products:
Limits and Derivatives:
7. Matrices & Vectors
Matrices are much faster to type in AsciiMath than LaTeX. Simply use square brackets containing lists of parentheses or brackets. You can also format vectors easily.
Matrices:
Vectors and Accents:
Inline Maths:
Did you know you can write inline maths like vec F = m * vec a? Just enable the AsciiMath Code Override in settings!
8. Grouping & Brackets
AsciiMath provides standard brackets that auto-scale. You can use special syntax for absolute values, floors, and ceilings.
Brackets:
Braces:
Want to keep this guide offline?
xyzEditor excels at local-first, privacy-focused PDF generation. You can instantly save this entire guide as a beautifully formatted PDF document.