[Tex/LaTex] Parentheses size around matrix

line-spacingmatricessetspace

I would like to get 1:n matrix with \left, \right size parentheses. Default size looks not so good. Now I have

$\begin{pmatrix}
f_0 & \ldots & f_L
\end{pmatrix}^T$

The view I get

enter image description here

I can get the view that I want like this

$\left(f_0 \quad \ldots \quad f_L\right)^T$

enter image description here

but maybe there is a better solution?

Best Answer

If you are using a package such as setspace or a similar method in order to widen the interline spacing, then you're out of luck.

The array environment uses the current baseline skip (distance between consecutive lines of text) to set itself up and the matrix environments provided by amsmath rely on array and this is probably why the parentheses grow in your example.

You can circumvent the problem by defining your own command:

\newcommand{\rowvector}[1]{%
  \begingroup\def\arraystretch{0}\begin{pmatrix}
  #1
  \end{pmatrix}\endgroup}

Then the input

$\rowvector{f_0 & \ldots & f_L}^T$

will work as you want.