Implementing LaTeX

I’ve been trying to get LaTeX working for a while. Turns out this is the magic recipe, though the unnumbered equations still don’t work quite right. I don’t foresee myself using them, though.

Let’s test some inline math $x$, $y$, $x_1$, $y_1$.

Now inline math with a special character: $|\psi\rangle$, $x’$, $x^*$.

Test display math:

$$ |\psi_1\rangle = a|0\rangle + b|1\rangle $$

Is it ok?

Test display math with equation numbers:

\begin{equation} |\psi_1\rangle = a|0\rangle + b|1\rangle \end{equation}

Is it ok?

Test display math with equation numbers:

$$ \begin{align} |\psi_1\rangle &= a|0\rangle + b|1\rangle \\\\ |\psi_2\rangle &= c|0\rangle + d|1\rangle \end{align} $$

Is it ok?

Test display math with equation numbers:

\begin{align} |\psi_1\rangle &= a|0\rangle + b|1\rangle \\\\ |\psi_2\rangle &= c|0\rangle + d|1\rangle \end{align}

Is it ok?