[Tex/LaTex] How to typeset a matrix with MathJax

delimitersmathjaxmatrices

I need to typeset a matrix with square brackets as delimiters for math.se (I believe they use MathJaX). How would I do that?

Best Answer

MathJax seems to accept the standard amsmath syntax

$\begin{bmatrix}a & b\\c & d\end{bmatrix}$

Rows are terminated with \\ and columns are separated by &