CoCalc
Sharedsupport / latex-macros.sagewsOpen in CoCalc

Examples for support purposes...

%latex
\newcommand*{\mtrx}[1]{\begin{bmatrix}#1\end{bmatrix}}
$\mtrx{1 & 2 \\ 3 & 4 \\}$
%md(hide=0)
$\newcommand{\mtrx}[1]{\begin{bmatrix}#1\end{bmatrix}}
\mtrx{1 & 2 \\ 3 & 4 \\}$

[1234]\newcommand{\mtrx}[1]{\begin{bmatrix}#1\end{bmatrix}} \mtrx{1 & 2 \\ 3 & 4 \\}


%md(hide=0)
matrx is still defined:

$$\mtrx{\alpha & 2 \\ 3 & 4 \\}$$

matrx is still defined: