Sharedsupport / 2017-03-23-130654-matrix-md.sagewsOpen in CoCalc
Examples for support purposes...
%md
Displayed matrix works:
$$ \begin{bmatrix}
    a & b \\ b & c
\end{bmatrix}$$

Non-displayed matrix does not work due to some backslash escaping we do not want touching tex:
$\begin{bmatrix}
    a & b \\ b & c
\end{bmatrix}$

Proof that this is the problem:
$\begin{bmatrix}
    a & b \\\\ b & c
\end{bmatrix}$

Displayed matrix works: [abbc] \begin{bmatrix} a & b \\ b & c \end{bmatrix}

Non-displayed matrix does not work due to some backslash escaping we do not want touching tex: [abbc]\begin{bmatrix} a & b \\ b & c \end{bmatrix}

Proof that this is the problem: [abbc]\begin{bmatrix} a & b \\\\ b & c \end{bmatrix}

%html
Displayed matrix works:
$$ \begin{bmatrix}
    a & b \\ b & c
\end{bmatrix}$$

Non-displayed matrix works fine in html mode:
$\begin{bmatrix}
    a & b \\ b & c
\end{bmatrix}$

Displayed matrix works: [abbc] \begin{bmatrix} a & b \\ b & c \end{bmatrix} Non-displayed matrix works fine in html mode: [abbc]\begin{bmatrix} a & b \\ b & c \end{bmatrix}