Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

arrays

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

share|improve this question

3 Answers 3

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
\[
l=\left(\begin{array}{@{}r@{}}
  75.3340\\
  ...
  41.74
  \end{array}\right)
\qquad
A=\left\begin{array}{@{}*5{r}@{}}
  1 & 0 & 0 & 0 & 0.1772 \\
  ...
  0 & 0 & 0 & 0 & -0.0104
  \end{array}\right)
\]

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
\documentclass{article}
\usepackage{amsmath}
\begin{document}

\[
  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}
\]
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

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.