I oppose the solutions since there must be a simple solution with subfloat packge which also mentions tables doc
How do i get to compile this next to one another, figure left and table on the right. EDIT to be more clear: one caption for the figure and one for the table.
\document
class{article}
\usepackage{amsmath}
\begin{document}
\begin{figure}[!t]
\centering
\subfloat[caption a. ]{\label{labelFIGURE}\includegraphics[width=0.5\textwidth]{figures/abs.png}}
\subfloat[caption b.]{
\begin{tabular}{@{}lllll@{}}
J & 0.0 & 0.25 & 0.5 & 1.0 \\
300 & 0.0 & 25.07 & 50.14 & 100.28 \\
kWh: & 0.0 & 125.00 & 250.00 & 500.00
\end{tabular} }
%REMOVED: \caption{common caption.}
\label{labelTABLE}
\end{figure}
\cref{labelTABLE} states ..
\end{document}
should look like (better)
\@captype
before the second\subfloat
, but wound up with two (a) subcaptions. In any case, the only difference between the two was the relative sizes of\abovecaptionskip
and\belowcaptionskip
.