I would like to write an augmented matrix with labeled rows out of the right bracket of the matrix, in such a way to enlight operations by row for Gaussian elimination procedure. I'm using this code for writing augmented matrices
Preamble:
\newenvironment{sysmatrix}[1]
{\left(\begin{array}{@{}#1@{}}}
{\end{array}\right)}
Result:
$$
\begin{sysmatrix}{rrr|r}
1 & 2 & 0 & 0 \\
-1 & 1 & 2 & 0 \\
1 & 0 & 1 & 5 \\
0 & -2 & 1 & 4
\end{sysmatrix}
$$
So now, how can I get labeled rows at the right? Have you some suggestions for sample codes?
Thank you
$$…$$
in LaTeX. Use, e.g.,\[…\]
instead.