AsciiMath-Operation Symbols
AsciiMath-Operation Symbols
and andand
or oror
not neg ¬¬
=> implies ⇒⇒
Miscellaneous symbols
Type TeX alt See
if ifif
<=> iff ⇔⇔
AA forall ∀∀
EE exists ∃∃
_|_ bot ⊥⊥
TT top ⊤⊤
|-- vdash ⊢⊢
|== models ⊨⊨
Grouping brackets
Type TeX alt See
( ((
) ))
[ [[
] ]]
{ {{
} }}
(: langle ⟨〈
:) rangle ⟩〉
<< ⟨〈
>> ⟩〉
{: x ) x)x)
( x :} (x(x
abs(x) |x||x|
floor(x) ⌊x⌋⌊x⌋
ceil(x) ⌈x⌉⌈x⌉
norm(vecx
)
∥→x∥∥x→∥
Arrows
Type TeX alt See
uarr uparrow ↑↑
darr downarrow ↓↓
rarr rightarrow →→
-> to →→
>-> rightarrowtail ↣↣
Arrows
Type TeX alt See
->> twoheadrightarrow ↠↠
>->> twoheadrightarrowtail ⤖⤖
|-> mapsto ↦↦
larr leftarrow ←←
harr leftrightarrow ↔↔
rArr Rightarrow ⇒⇒
lArr Leftarrow ⇐⇐
hArr Leftrightarrow ⇔⇔
Accents
Type TeX alt See
hat x ˆxx^
bar x overline x ¯xx¯
ul x underline x x––x̲
vec x →xx→
dot x .xx.
ddot x ..xx..
Special Cases
Matrices: [[a,b],[c,d]] yields to [abcd][abcd]
Column vectors: ((a),(b)) yields to (ab)(ab)
Matrices can be used for layout: {(2x,+,17y,=,23),
(x,-,y,=,5):} yields {2x+17y=23x−y=5{2x+17y=23x-y=5
Complex subscripts: lim_(N->oo) sum_(i=0)^N yields to limN→∞N∑i=0limN→∞∑i=0N
Subscripts must come before superscripts: int_0^1 f(x)dx yields to ∫10f(x)dx∫01f(x)dx
Derivatives: f'(x) = dy/dx yields f'(x)=dydxf′(x)=dydx
For variables other than x,y,z, or t you will need grouping symbols: (dq)/(dp) for dqdpdqdp
Overbraces and underbraces: ubrace(1+2+3+4)_("4
terms") yields 1+2+3+44 terms1+2+3+4⏟4 terms.
obrace(1+2+3+4)^("4 terms") yields 4
terms1+2+3+41+2+3+4⏞4 terms.
Attention: Always try to surround the > and < characters with spaces so that the html parser does not
confuse it with an opening or closing tag!
The Grammar
Here is a definition of the grammar used to parse AsciiMath expressions. In the Backus-Naur form given
below, the letter on the left of the ::= represents a category of symbols that could be one of the possible
sequences of symbols listed on the right. The vertical bar | separates the alternatives.
v ::= [A-Za-z] | greek letters | numbers | other constant symbols
u ::= sqrt | text | bb | other unary symbols for font commands
b ::= frac | root | stackrel | other binary symbols
l ::= ( | [ | { | (: | {: | other left brackets
r ::= ) | ] | } | :) | :} | other right brackets
S ::= v | lEr | uS | bSS Simple expression
I ::= S_S | S^S | S_S^S | S Intermediate expression
E ::= IE | I/I Expression