# Vertical line in Gaussian reduction matrix [closed]

Try to represent Gaussian reduction in Latex but couldn't find way to correctly show the vertical line

\begin{pmatrix}[cc|c]
1 & 2 & 3\\
4 & 5 & 9
\end{pmatrix}


doesn't work

This works for me

$$\left(\begin{array}{cc|c} 1 & 1 & -1 \\ 2 & 3 & 0 \\ \end{array}\right)$$


## closed as off-topic by CarLaTeX, Maarten Dhondt, Zarko, Jesse, user36296Feb 3 '17 at 11:40

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

• see here and here – dexteritas Feb 3 '17 at 9:45
• I'm voting to close this question as off-topic because already solved by the OP himself! – CarLaTeX Feb 3 '17 at 9:48
• tex.stackexchange.com/questions/146723/… may also be of interest. (And note that it is recommended to not use $$...$$ for display math in LaTeX, use $...$ instead.) – Torbjørn T. Feb 3 '17 at 9:48

You can have this simpler code with delarray:
\documentclass{article}
$\begin{array}({@{}cc|c@{}}) 1 & 1 & -1 \\ 2 & 3 & 0 \\ \end{array}\$