How do you typeset a matrix like this in a notebook?
$$\begin{pmatrix} x|_1 & 1 & 0& 0&0\\ 1 & x^2|_1 & 0& 0&0\\ 0& 0&x|_2 & 1 &0\\ 0& 0&1 & x^2|_2 &0\\ 0& 0&0 & 0&\ddots\\ \end{pmatrix}$$
Also a column matrix with curly brackets?
Happy to be pointed to a duplicate (I searched but could not find one.) I would prefer not to have to use lots of box forms as here. I also note that we have no tag for typesetting. Thanks



MaTeXin this case? Or is this going to be used for actual mathematica code? – Nasser Mar 06 '22 at 17:47