How can I create a vector like this one?
It is similar to this question, but with additional columns.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHow can I create a vector like this one?
It is similar to this question, but with additional columns.
Quick and dirty approach with pmatrix
environment
The individual columns are separated by a &
character, the next linebreak is achieved with \\
If one replaces pmatrix
with bmatrix
, the [ ]
version is obtained
\documentclass[12pt]{article}
\usepackage{mathtools}
\begin{document}
\begin{equation*}
A = \begin{pmatrix}
3 & 5 \\
5 & 2 \\
2 & 1 \\
1 & 4 \\
7 & 9
\end{pmatrix}
\end{equation*}
\end{document}
\cr
;-) If it works with \\
too, the better ;-)
amsmath
there's a description of \cr
? Possibly I didn't read them carefully enough. Out of joke: DON'T use \cr
in LaTeX documents.
\matrix{1 & 2\cr 3 & 4\cr}
using the LaTeX command inherited from Plain, that's supplanted by matrix
of amsmath
(and the other environments adding parentheses). See tex.stackexchange.com/questions/57658/…