I want to create a single table in two column article, where internally table contains two tables, one in each column. The following picture shows the requirements.
1 Answer
The following will be a good starting point for you. For other tweaks (including centering of individual tables and captions), you need to study a bit more. Please see these, 1, 2, 3.
For the particular issue of placing a double column float at page bottom, this article is a good read.
\documentclass[twocolumn]{article}
\usepackage{lipsum}
\usepackage{stfloats}
\begin{document}
\begin{table*}[!b]
\caption{Caption.}
\label{tab:tbl1}
\centering
\begin{tabular}[t]{|c|c|c|}
\hline
X&Y&X\\\hline
1&2&3\\
4&5&6\\
1&2&3\\
4&5&6\\
1&2&3\\
4&5&6\\
1&2&3\\
4&5&6\\
7&8&9\\\hline
\end{tabular}
\hfill
\begin{tabular}[t]{|c|c|c|}
\hline
A&B&C\\\hline
a&b&c\\
d&e&f\\
g&h&i\\
j&k&l\\
m&n&o\\
p&q&r\\
s&t&u\\
v&w&x\\\hline
\end{tabular}
\end{table*}
\lipsum[1-20]
\end{document}
-
2+1. You may want to point out that the
\centering
statement (immediately after\label
) is needed only if the\hfill
directive were omitted.– MicoAug 23, 2017 at 7:24 -
@Mico I could not decide what actually he is asking for. Centered individuals tables, both caption and individual tables centered, or something else. I wanted to compress all these issues inside that blanket statement of "other tweaks". Putting a hint anyway.– MasroorAug 23, 2017 at 7:39
-
@mico Also, those issues pointed out in your comment are the ones based on which the solution may change, including the use of
longtable
.– MasroorAug 23, 2017 at 7:44
\begin{table*}\caption{Caption}\begin{tabular}{ccc} ... \end{tabular}\hfill\begin{tabular}{ccc} ... \end{tabular}\end{table*}