AsciiMath symbols

Most AsciiMath symbols attempt to mimic in text what they look like rendered, like oo for `oo`. Many symbols can also be displayed using a TeX alternative, but a preceeding backslash is not required.
Operation symbols
TypeTeX altSee
+
`+`
-
`-`
*cdot`*`
**ast`**`
***star`***`
//
`//`
\\backslash
setminus
`\\`
xxtimes`xx`
-:div`-:`
|><ltimes`|><`
><|rtimes`><|`
|><|bowtie`|><|`
@circ`@`
o+oplus`o+`
oxotimes`ox`
o.odot`o.`
sum
`sum`
prod
`prod`
^^wedge`^^`
^^^bidwedge`^^^`
vvvee`vv`
vvvbigvee`vvv`
nncap`nn`
nnnbigcap`nnn`
uucup`uu`
uuubigcup`uuu`
 
Miscellaneous symbols
TypeTeX altSee
2/3frac{2}{3}`2/3`
2^3
`2^3`
sqrt x
`sqrt x`
root(3)(x)
`root(3)(x)`
int
`int`
oint
`oint`
delpartial`del`
gradnabla`grad`
+-pm`+-`
O/emptyset`O/`
ooinfty`oo`
aleph
`aleph`
:.therefore`:.`
:'because`:'`
|...||ldots|`|...|`
|cdots|
`|cdots|`
vdots
`vdots`
ddots
`ddots`
|\ |
`|\ |`
|quad|
`|quad|`
/_angle`/_`
frown
`frown`
/_\triangle`/_\\`
diamond
`diamond`
square
`square`
|__lfloor`|__`
__|rfloor`__|`
|~lceiling`|~`
~|rceiling`~|`
CC
`CC`
NN
`NN`
QQ
`QQ`
RR
`RR`
ZZ
`ZZ`
"hi"text(hi)`"hi"`
Relation symbols
TypeTeX altSee
=
`=`
!=ne`!=`
<lt`<`
>gt`>`
<=le`<=`
>=ge`>=`
-<prec`-<`
-<=preceq`-<=`
>-succ`>-`
>-=succeq`>-=`
in
`in`
!innotin`!in`
subsubset`sub`
supsupset`sup`
subesubseteq`sube`
supesupseteq`supe`
-=equiv`-=`
~=cong`~=`
~~approx`~~`
proppropto`prop`
 
Logical symbols
TypeTeX altSee
and
`and`
or
`or`
notneg`not`
=>implies`=>`
if
`if`
<=>iff`iff`
AAforall`AA`
EEexists`EE`
_|_bot`_|_`
TTtop`TT`
|--vdash`|--`
|==models`|==`
Grouping brackets
TypeTeX altSee
(
`(`
)
`)`
[
`[`
]
`]`
{
`{`
}
`}`
(:langle`(:`
:)rangle`:)`
<<
`<<`
>>
`>>`
{: x )
`{: x )`
( x :}
`( x :}`
abs(x)
`abs(x)`
floor(x)
`floor(x)`
ceil(x)
`ceil(x)`
norm(vecx)
`norm(vecx)`
 
Arrows
TypeTeX altSee
uarruparrow`uarr`
darrdownarrow`darr`
rarrrightarrow`rarr`
->to`->`
>->rightarrowtail`>->`
->>twoheadrightarrow`->>`
>->>twoheadrightarrowtail`>->>`
|->mapsto`|->`
larrleftarrow`larr`
harrleftrightarrow`harr`
rArrRightarrow`rArr`
lArrLeftarrow`lArr`
hArrLeftrightarrow`hArr`
Accents
TypeTeX altSee
hat x
`hat x`
bar xoverline x`bar x`
ul xunderline x`ul x`
vec x
`vec x`
dot x
`dot x`
ddot x
`ddot x`
overset(x)(=)overset(x)(=)`overset(x)(=)`
underset(x)(=)
`underset(x)(=)`
ubrace(1+2)underbrace(1+2)`ubrace(1+2)`
obrace(1+2)overbrace(1+2)`obrace(1+2)`
color(red)(x)
`color(red)(x)`
cancel(x)
`cancel(x)`
Greek Letters
TypeSeeTypeSee
alpha`alpha`
beta`beta`
gamma`gamma`Gamma`Gamma`
delta`delta`Delta`Delta`
epsilon`epsilon`
varepsilon`varepsilon`
zeta`zeta`
eta`eta`
theta`theta`Theta`Theta`
vartheta`vartheta`
iota`iota`
kappa`kappa`
lambda`lambda`Lambda`Lambda`
mu`mu`
nu`nu`
xi`xi`Xi`Xi`
pi`pi`Pi`Pi`
rho`rho`
sigma`sigma`Sigma`Sigma`
tau`tau`
upsilon`upsilon`
phi`phi`Phi`Phi`
varphi`varphi`
chi`chi`
psi`psi`Psi`Psi`
omega`omega`Omega`Omega`
 
Font commands
TypeSee
bb "AaBbCc"`bb "AaBbCc"`
bbb "AaBbCc"`bbb "AaBbCc"`
cc "AaBbCc"`cc "AaBbCc"`
tt "AaBbCc"`tt "AaBbCc"`
fr "AaBbCc"`fr "AaBbCc"`
sf "AaBbCc"`sf "AaBbCc"`
 

Standard Functions

sin, cos, tan, sec, csc, cot, arcsin, arccos, arctan, sinh, cosh, tanh, sech, csch, coth, exp, log, ln, det, dim, mod, gcd, lcm, lub, glb, min, max, f, g.

Special Cases

Matrices: [[a,b],[c,d]] yields to `[[a,b],[c,d]]`
Column vectors: ((a),(b)) yields to `((a),(b))`
Matrices can be used for layout: {(2x,+,17y,=,23),(x,-,y,=,5):} yields `{(2x,+,17y,=,23),(x,-,y,=,5):}`
Complex subscripts: lim_(N->oo) sum_(i=0)^N yields to `lim_(N->oo) sum_(i=0)^N`
Subscripts must come before superscripts: int_0^1 f(x)dx yields to `int_0^1 f(x)dx`
Derivatives: f'(x) = dy/dx yields `f'(x) = dy/dx`
For variables other than x,y,z, or t you will need grouping symbols: (dq)/(dp) for `(dq)/(dp)`
Overbraces and underbraces: ubrace(1+2+3+4)_("4 terms") yields `ubrace(1+2+3+4)_("4 terms")`.
obrace(1+2+3+4)^("4 terms") yields `obrace(1+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

Comments

Post a Comment

Popular posts from this blog

Jazz International Call Packages For Dubai, Saudi Arabia

A Guide to Writing Mathematics

General Knowledge Post 2