# Arrays in the text

In my example below, I need to write it "nicely", i.e., to have the array with ones smaller, less space around,...Anyone knows how to do it?

\documentclass[a4paper,12pt]{article}

\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}

\newcommand{\vX}{\boldsymbol{X}}
\newcommand{\vP}{\boldsymbol{P}}
\newcommand{\vN}{\boldsymbol{N}}
\newcommand{\vT}{\boldsymbol{T}}
\newcommand{\vI}{\boldsymbol{I}}

$$\nonumber \vX_1 = -\rho\vP^{o}\vT-\rho\vP^g\big(\left( \begin{array}{l} 1\\ 1 \end{array} \right)\otimes \vI\big)\vN,$$

\end{document}
• \left(\begin{smallmatrix}1\\1\end{smallmatrix}\right) – egreg Mar 6 '15 at 22:11

You may want to use the smallmatrix environment, which is provided by the amsmath package, encased in big-sized parentheses:

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath,amssymb,bm}

\newcommand{\vX}{\bm{X}}
\newcommand{\vP}{\bm{P}}
\newcommand{\vN}{\bm{N}}
\newcommand{\vT}{\bm{T}}
\newcommand{\vI}{\bm{I}}

\begin{document}
$\vX_1 = -\rho\vP^{o}\vT-\rho\vP^g\bigl( \bigl(\begin{smallmatrix} 1\\1 \end{smallmatrix} \bigr) \otimes \vI\bigr)\vN$
\end{document}

Addendum: If one leaves off the \big modifiers around the smallmatrix, one gets

You may, or may not, prefer this look to the one shown above.

• Almost the same as mine, but: 1. the \newcommand lines should be before \begin{document} and 2. \nonumber should not be used, preferring equation*. – egreg Mar 6 '15 at 22:16
• @egreg - good points, I'll make the changes. – Mico Mar 6 '15 at 22:17
• Oh, and if you use \left( and \right) around the smallmatrix, the result will be even better (you can see it in my deleted answer). – egreg Mar 6 '15 at 22:18
• @egreg - Thanks, implemented your follow-up suggestion as well. :-) – Mico Mar 6 '15 at 22:27