[Tex/LaTex] Matrix in small size

fontsizematrices

Does anyone have a good idea for an alternative matrix definition with a font size between the standard size used for say pmatrix and the \scriptstyle size used by smallmatrix?

I have several vectors in manuscript that I'm editing, and I think

\begin{pmatrix}
1 \\ 2 
\end{pmatrix}

take up too much space and (requite mathtools)

\begin{psmallmatrix}
1 \\ 2
\end{psmallmatrix}

is too small.

The contents of these medium matrices may contain numbers and most likely also x_2 types of constructions.

Any ideas?

EDIT: My bad, I was of course referring to vertical vectors. And they will only be used in displayed mode.

Best Answer

You could combine Werner's \colvec with a small reduction of the interline space:

\documentclass{article}
\usepackage{graphicx,amsmath}
\newcommand{\colvec}[2][.8]{%
  \scalebox{#1}{%
    \renewcommand{\arraystretch}{.8}%
    $\begin{bmatrix}#2\end{bmatrix}$%
  }
}

\begin{document}
\[
\mathbf{a}+\colvec{x\\y\\z}+\begin{bmatrix}x\\y\\z\end{bmatrix}+\colvec[.7]{x\\y\\z}
\]
\end{document}

enter image description here

Related Question