single character inline equation. (valid=True) . $a$ .

a

. inline equation with single greek character (valid=True) . $\\varphi$ .

\\varphi

. simple equation starting and ending with numbers. (valid=True) . $1+1=2$ .

1+1=2

. simple equation including special html character. (valid=True) . $1+1<3$ .

1+1<3

. equation including backslashes. (valid=True) . $a \\backslash$ .

a \\backslash

. use of currency symbol (valid=True) . You get 3$ if you solve $1+2$ .

You get 3$ if you solve 1+2

. use of currency symbol (valid=True) . If you solve $1+2$ you get $3 .

If you solve 1+2 you get $3

. inline fraction (valid=True) . $\\frac{1}{2}$ .

\\frac{1}{2}

. inline column vector (valid=True) . $\\begin{pmatrix}x\\\\y\\end{pmatrix}$ .

\\begin{pmatrix}x\\\\y\\end{pmatrix}

. inline bold vector notation (valid=True) . ${\\tilde\\bold e}_\\alpha$ .

{\\tilde\\bold e}_\\alpha

. exponentiation (valid=True) . $a^{b}$ .

a^{b}

. conjugate complex (valid=True) . $a^\*b$ with $a^\*$ .

a^\*b with a^\*

. Inline multi-line (valid=True) . a $a \not=1$ b .

a a \not=1 b

. Inline multi-line with newline (valid=False) . a $a \not=1$ b .

a $a

\not=1$ b

. single block equation, greek index (valid=True) . $$e_\\alpha$$ .
e_\\alpha
. display equation on its own single line. (valid=True) . $$1+1=2$$ .
1+1=2
. inline equation followed by block equation. (valid=True) . ${e}_x$ $$e_\\alpha$$ .

{e}_x

e_\\alpha
. underline tests (valid=True) . $$c{\\bold e}_x = a{\\bold e}_\\alpha - b\\tilde{\\bold e}_\\alpha$$ .
c{\\bold e}_x = a{\\bold e}_\\alpha - b\\tilde{\\bold e}_\\alpha
. non-numeric character before opening $ or after closing $ or both is allowed. (valid=True) . a$1+1=2$ $1+1=2$b c$x$d .

a1+1=2 1+1=2b cxd

. following dollar character '$' is allowed. (valid=True) . $x$ $ .

x $

. consecutive inline equations. (valid=True) . $x$ $y$ .

x y

. inline equation after '-' sign in text. (valid=True) . so-what is $x$ .

so-what is x

. display equation with line breaks. (valid=True) . $$ 1+1=2 $$ .
1+1=2
. multiple equations (valid=True) . $$ a = 1 $$ $$ b = 2 $$ .
a = 1
b = 2
. equation followed by a labelled equation (valid=True) . $$ a = 1 $$ $$ b = 2 $$ (1) .
a = 1
b = 2
. multiline equation. (valid=True) . $$\\begin{matrix} f & = & 2 + x + 3 \\ & = & 5 + x \\end{matrix}$$ .
\\begin{matrix} f & = & 2 + x + 3 \\ & = & 5 + x \\end{matrix}
. vector equation. (valid=True) . $$\\begin{pmatrix}x_2 \\\\ y_2 \\end{pmatrix} = \\begin{pmatrix} A & B \\\\ C & D \\end{pmatrix}\\cdot \\begin{pmatrix} x_1 \\\\ y_1 \\end{pmatrix}$$ .
\\begin{pmatrix}x_2 \\\\ y_2 \\end{pmatrix} = \\begin{pmatrix} A & B \\\\ C & D \\end{pmatrix}\\cdot \\begin{pmatrix} x_1 \\\\ y_1 \\end{pmatrix}
. display equation with equation number. (valid=True) . $$f(x) = x^2 - 1$$ (1) .
f(x) = x^2 - 1
. inline equation following code section. (valid=True) . `code`$a-b$ .

codea-b

. equation following code block. (valid=True) . ``` code ``` $$a+b$$ .
code
a+b
. numbered equation following code block. (valid=True) . ``` code ``` $$a+b$$(1) .
code
a+b
. Equations in list. (valid=True) . 1. $1+2$ 2. $2+3$ 1. $3+4$ .
  1. 1+2
  2. 2+3
    1. 3+4
. Inline sum. (valid=True) . $\\sum\_{i=1}^n$ .

\\sum\_{i=1}^n

. Sum without equation number. (valid=True) . $$\\sum\_{i=1}^n$$ .
\\sum\_{i=1}^n
. Sum with equation number. (valid=True) . $$\\sum\_{i=1}\^n$$ \(2\) .
\\sum\_{i=1}\^n
. equation number always vertically aligned. (valid=True) . $${\\bold e}(\\varphi) = \\begin{pmatrix} \\cos\\varphi\\\\\\sin\\varphi \\end{pmatrix}$$ (3) .
{\\bold e}(\\varphi) = \\begin{pmatrix} \\cos\\varphi\\\\\\sin\\varphi \\end{pmatrix}
. inline equations in blockquote. (valid=True) . > see $a = b + c$ > $c^2=a^2+b^2$ (2) > $c^2=a^2+b^2$ .

see a = b + c c^2=a^2+b^2 (2) c^2=a^2+b^2

. display equation in blockquote. (valid=True) . > formula > > $$ a+b=c$$ (2) > > in blockquote. .

formula

a+b=c

in blockquote.

. mixed syntax: . $$ a=1 \\ b=2 $$ (abc) - ab $c=1$ d .
a=1 \\ b=2
. escaped dollars '\\$' are interpreted as dollar '$' characters. (valid=True) . \\$1+1=2$ $1+1=2\\$ .

\$1+1=2$ $1+1=2\$

. empty line between text and display formula is required. (valid=False) . some text \$\\$a+b=c\$\$ .

some text $\$a+b=c$$

. whitespace character after opening $ or before closing $ is not allowed. (valid=False) . $ $ $ x$ $x $ .

$ $ $ x$ $x $

.