Peter Percival
> Is it possible to put two tables side-by-side on a page? I'm using
>
> \begin{table}[h]
> $$
> array in here
> $$
> \caption{text}
> \end{table}
>
> twice, so one table is below the other and it's a bit wasteful of paper.
Off the cuff I'd suggest ensuring that
- either (La)TeX is in horizontal mode (building a horizontal list for a paragraph)
via \leavevmode
- or (La)TeX is in restricted horizontal mode and builds the horizontal list for a
\hbox of width \textwidth
and then using two vertical boxes (\vbox or \vtop) for placing the arrays.
Be aware that so-called vertical boxes will not in any case be placed below
each other: "vertical" in "vertical boxes" refers to how the _content_ of these
boxes will be typeset inside/into these boxes. How the vertical boxes
themselves will be placed depends on the mode (La)TeX is in when encountering
these boxes.
Within each vertical box the width of lines in case (La)TeX enters horizontal
mode while typesetting the content of that box can be adjusted via
the dimension-parameter \hsize.
As it was ensured that TeX is in (restricted) horizontal mode, the vertical boxes
themselves will be placed into the same line.
Ulrich
\documentclass[a4paper]{article}
\begin{document}
\begin{table}
\leavevmode
\vbox{\hsize=.5\textwidth
$$Array~1$$
\caption{Caption 1}%
}%
\vbox{\hsize=.5\textwidth
$$Array~2$$
\caption{Caption 2}%
}%
\end{table}
\begin{table}
\hbox to \textwidth{%
\vbox{\hsize=.5\textwidth
$$Array~3$$
\caption{Caption 3}%
}%
\vbox{\hsize=.5\textwidth
$$Array~4$$
\caption{Caption 4}%
}%
}%
\end{table}
\end{document}