Using 'subfigure', how can I create subtables within a table, such that a) subcaptions are underneath each subtable, and b) there's a reasonable horizontal gap between the subtables? So far I've only be able to get the subcaptions on top, and no reasonable gap, e.g. with following code:
\documentclass{article}
\usepackage{subfigure}
\begin{document}
\begin{table}
\centering
\subtable[caption1]
{\begin{tabular}{c c c}
\ $a$ & $b$ & $c$ \\
\hline 0 & 0 & 0 \\
\ 1 & 1 & 1 \\
\end{tabular}}
\subtable[caption2]
{\begin{tabular}{c c c}
\ $a$ & $b$ & $c$ \\
\hline 0 & 0 & 0 \\
\ 1 & 1 & 1 \\
\end{tabular}}
\caption{caption for whole table}
\end{table}
\end{document}

\(space) commands because the first column doesn't align properly (see also Percusse's output). Alternatively, add an explicit space after the\hlinecommand. – Jan 08 '12 at 21:18