[Tex/LaTex] aligning bottom of two tables

floatssubfloatsvertical alignment

I need to align the bottom of these two tables, and I need to add a brace to each side of the second table.. how can I do that?

\begin{figure}[]
 \centering
  \subfloat[]{ 
  \begin{tabular}{cc}
  \hline
  0 & 1\\
  \hline
  2 & 1\\
  3 & 1\\
  4 & 2\\
  5 & 3\\
  4 & 8\\
  \hline
  \end{tabular}
  }  
  \subfloat[]{
  \begin{tabular}{cc}
  \hline
  1 & 2\\
  \hline
  3 & 7\\
  4 & 5\\
  \hline
  \end{tabular}
  }
\end{figure}

Any help appreciated,

Ted.

Best Answer

I don't know, what kind of braces do you mean. Here is an example with round braces, can also be changed to something else.

enter image description here

\documentclass{scrartcl}
\usepackage{subfig}
\begin{document}

\begin{figure}
 \centering
  \subfloat[]{% 
  \begin{tabular}[b]{cc}
  \hline
  0 & 1\\
  \hline
  2 & 1\\
  3 & 1\\
  4 & 2\\
  5 & 3\\
  4 & 8\\
  \hline
  \end{tabular}%
  }  \qquad
  \raisebox{1.2\normalbaselineskip}{$\left\{\rule{0pt}{2.1\normalbaselineskip}\right.$}
  \subfloat[]{%
  \begin{tabular}[b]{cc} \hline
  1 & 2\\ \hline
  3 & 7\\
  4 & 5\\\hline
  \end{tabular}%
  }~
  \raisebox{1.2\normalbaselineskip}{$\left\}\rule{0pt}{2.1\normalbaselineskip}\right.$}
\end{figure}

\end{document}