TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

what I've been trying to do is to pack multiple arrays on a single 'row', similar to what subfig module does with images (and tables, I guess); mostly to conserve space.

Something like this:


I would use tables and subfig instead of arrays, but I'm not sure how the parentheses would work.

share|improve this question
up vote 5 down vote accepted

Just write the array in the same line, without a paragraph break or leaving the math environment, such as

  l = \left(\begin{array} ... \end{array}\right) \qquad 
  A = \left(\begin{array} ... \end{array}\right ...

resp. matrix environments.

share|improve this answer
Darn, why didn't I think of that? This seems like the most straightforward solution. Thank you. – halka May 26 '11 at 19:48
  1 & 0 & 0 & 0 & 0.1772 \\
  0 & 0 & 0 & 0 & -0.0104

Use the "r" specifier, if you don't want centered entries; the two @{} avoid bad spacing on the left and on the right.

share|improve this answer

  A=\begin{pmatrix}1\\2\\3.14\\5\end{pmatrix} \mkern30mu 
  B=\begin{pmatrix}0.1 & 0.001 & 4\\
                   0.2 & 0.1   & 5\end{pmatrix}

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.