I have a problem that I cant solve it alone even I have read several threads here. The goal is to have 2 tables side by side with subcaption (a) and (b).
However, I dont know where my mistakes are, because the tables wont appear as I would like to. Here is the code:
[![\documentclass{article}
\usepackage{adjustbox}
\usepackage{graphicx}
\begin{document}
\begin{table}\[!htb\]
\caption{Global caption}
% \resizebox{10cm}{!}{
\begin{minipage}{.5\textwidth}
\caption{This is a very very very long Caption}
\centering
\begin{tabular}{@{\extracolsep{1pt}}lcccc}
\\\hline
\hline \\
Statistic & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Max} \\
\hline \\
A & 1.000 & 0.000 & 1 & 1 \\
B & 0.968 & 0.76 & 0.138 & 1.000 \\
C & 0.969 & 0.009 & 0.917 & 1.000 \\
D & 0.966 & 0.070 & 0.495 & 0.83 \\
\hline \\
\end{tabular}
\end{minipage}%
\begin{minipage}{.5\textwidth}
\centering
\caption{This is a very very very long Caption}
\begin{tabular}{@{\extracolsep{1pt}}lcccc}
\\\hline
\hline \\
Statistic & \multicolumn{1}{c}{Mean} & \multicolumn{1}{c}{St. Dev.} & \multicolumn{1}{c}{Min} & \multicolumn{1}{c}{Max} \\
\hline \\
A & 1.000 & 0.000 & 1 & 1 \\
B & 0.968 & 0.76 & 0.138 & 1.000 \\
C & 0.969 & 0.009 & 0.917 & 1.000 \\
D & 0.966 & 0.070 & 0.495 & 0.83 \\
\hline \\
\end{tabular}
\end{minipage}
%}
\end{table}
\end{document}][1]][1]
Thank you so much for your time. I really appreciate.
Best,
Christine
Best Answer
Is this what you looking for?
how to place two line in one line, you are already informed from comments and answer of Martin Nyolt, so I more focused on off topic issue:
subfloats
, for example from packagesubcapation
(used in MWE below) or from packagesubfig
subtable
. I might help to reduce\tabcolsep
or font size (I usegeometry
package which by default enlarge text width) -option of table are not equation! use it as are used in MWe belowMWE: