\documentclass[11pt]{article}
\usepackage{array,ragged2e}
\newcolumntype{C}[1]{>{\Centering}m{#1}}
\begin{document}
{\def\arraystretch{1.5}
\begin{tabular}{ C{1.8cm} | C{1cm} }
Problem & $\beta$ \\\hline
LCR-1 & 0.25 \\\hline
LCR-10 & 0.05 \\\hline
LCR-0.2 & 0.575 \\\hline
Airplane & 0.05 \\\hline
DR & 0.27
\end{tabular}}
\end{document}
Matrices!
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{matrix,arrows,positioning}
\begin{document}
\begin{table}
\centering%
\begin{tikzpicture}[scale=0.6,column 1/.style={nodes={text width=1.5cm}}]
\matrix[matrix of nodes,
draw,
%outer sep=2mm,
%
] (firsttable) {
title & nationality & locatedIn & salary \\
?t & ?n & ?p & ?s \\ \hline
Professor & American & USA & \$100,000 \\ \hline
Professor & American & China & \$100,000 \\ \hline
Assistant Professor & Canadian & China & \$45,000 \\ \hline
Assistant Professor & Canadian & China & \$45,000 \\ \hline
Assistant Professor & Canadian & China & \$45,000 \\
};
\matrix[matrix of nodes,
draw,
right = 2 cm of firsttable.south east,
anchor= south west,
] (secondtable) {
title & nationality & locatedIn & salary \\
?t & ?n & ?p & ?s \\ \hline
Professor & American & USA & \$100,000 \\ \hline
Professor & American & China & \$100,000 \\ \hline
Assistant Professor & Canadian & China & \$135,000 \\
};
\draw[
-triangle 90,
line width=1mm,
postaction={draw, line width=0.3cm, shorten >=0.3cm, -}
] ([xshift=3mm]firsttable.east |- secondtable.west) -- ([xshift=-3mm]secondtable.west);
\foreach \x in {1,2,3}{
\draw (firsttable.north west -| firsttable-1-\x.north east) |- (firsttable.south west -| firsttable-4-\x.north east);
}
\foreach \x in {1,2,3}{
\draw (secondtable.north west -| secondtable-1-\x.north east) |- (secondtable.south west -| secondtable-4-\x.north east);
}
\end{tikzpicture}
\caption{Current and Mean B with a Reversed Polarity}
\label{tikztable}
\end{table}
\end{document}
EDIT: I've repositioned the table and drawn verticle seperators. However it is strongly recommended to avoid vertical seperators but that's a whole another story and I am not literate enough to comment on that.
Best Answer
You will want to use the subcaption package for this purpose.
This package provides the
subtable
environment for the goal you wanted to achieve. Please read section 3 of the package documentation for details.Please note how the
\subref
command has been used to refer to the subtables. If you want to refer using both main number and subnumber (e.g. 1(a)), you will want to use the\ref
command. Format for all of these can be controlled. Please see the package documentation for this feature. Another useful document is here.Anyway, here is your code.
And here is the output.