1

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

enter image description here

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, user36296 Feb 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.

0

You can have this simpler code with delarray:

\documentclass{article}
\usepackage{amsmath}
 \usepackage{delarray}

\begin{document}

\[
    \begin{array}({@{}cc|c@{}})
     1 & 1 & -1 \\
     2 & 3 & 0 \\
    \end{array}\
\]

\end{document} 

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.