I am trying to typeset some examples of Gaussian eliminations in LaTeX. I found the gauss package really simple to use, but couldn't figure out how to put a vertical line in between columns. Here is what I have so far (just a regular matrix)
\documentclass[a4paper,12pt]{article}
\usepackage{gauss}
\usepackage{amsmath,amssymb}
\begin{document}
$\begin{gmatrix}[p]
2 & 0 & 1 & 1 & 0 & 0 \
0 & 1 & 0 & 0 & 1 & 0 \
0 & 0 & 3 & 0 & 0 & 1
\rowops
\mult{0}{\cdot \frac{1}{2}}
\end{gmatrix}$
\end{document}





Missing $ inserted.. Could you extend your code fragment into a working document we can copy and paste please? It helps people help you and is a polite thing to do, I understand you are new so do not worry about not knowing – JamesT Apr 04 '23 at 07:18