❮❮❮ ❮❮❮   ❯❯❯ ❯❯❯
Math rendering test
Testing math rendering. Rendering may be broken.

Tags: testcase latex
Reading time: 2 min.

Math delimiters

Inline math

Full line math

Render $$ x = 6$$:

$$ x = 6$$

Render \\[x = 4\\]:

\[x = 4\]

Render \[x = 5\]:

[x = 5]

Fails because of Common Mark escaped punctuation.

Environments

First align:

\begin{align} x&=2 \\ y&=3 \end{align}

Then align*:

\begin{align*} x&=2 \\ y&=3 \end{align*}

Finally aligned:

$$ \begin{aligned} x&=2 \\ y&=3 \end{aligned} $$

Labels and references

\begin{equation} \label{eq_four} 4 + 4 \not= 4\,. \end{equation}

See equation $\eqref{eq_four}$.

Set notation

Spacing

Subscripts

Definitions

New command

How to do in mathjax

$\newcommand{\NN}{\mathbb{N}}$

Let $x\in\NN$.

$\newcommand{\NN}{\mathbb{N}}$

Let $x\in\NN$.