I following code produces matrices as given in image
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\left[ {\begin{array}{*{20}{c}} \mathbf{y}_1 \\ \vdots \\ \mathbf{y}_s \\ \vdots \\ \mathbf{y}_S \end{array}} \right] =
\begin{bmatrix} \mathbf{y}_1 \\ \vdots \\ \mathbf{y}_s \\ \vdots \\ \mathbf{y}_S \end{bmatrix}
\end{equation}
\end{document}
To me the matrix produced by bmatrix
(on the right) is a bit congested, is there a way to produce a spacious matrix (like in the left) using bmatrix
?
Just curious 🙂
Best Answer
If you really want the space like in
array
, usearray
:Full example
But, please, don't: the standard
\arraycolsep
is really too much. Maybewhich would yield
Actually, in order to get the same behavior as the standard
bmatrix
, one should add a small bit of code:This allows a row to begin with
[
without taking special precautions.