[Tex/LaTex] Table and figure side by side. Using float, not floatrow, seperate captions

floatrowsubfloats

I am trying to make tables and figure work side by side with seperate captions, with float not floatrow.
I use float and subfigure in a number of places already.

I made a small example with my full preamble.

\documentclass[runningheads,a4paper]{llncs}
\usepackage{import}
\usepackage{amssymb}
\usepackage{amsmath}
\setcounter{tocdepth}{3}
\usepackage{graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{framed}
\usepackage{url}
\usepackage[colorinlistoftodos]{todonotes}
\newcommand{\itodo}[1]{\todo[inline, color=green!40]{#1}}
\usepackage{pgfplots}
\pgfplotsset{compat=1.10}
\usepackage{tikz}
\usetikzlibrary{plotmarks}
\usetikzlibrary{patterns}
\usetikzlibrary{chains}
\usepackage{tkz-euclide}
\tikzstyle{important line}=[very thick]
\tikzstyle{information text}=[rounded corners,fill=white,inner sep=1ex]

\usepackage{float}
\usepackage{subfigure}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{rotating}
\usepackage{booktabs, multicol, multirow}
\usepackage{adjustbox}
\usepackage{array}
\usepackage{tikz}
\usepackage{lmodern}
\usepackage{floatrow}
\begin{document}

\begin{figure}
  \centering
  \subfigure[a]{\includegraphics[width=0.24\textwidth]{...}}
  \hspace{.02\textwidth}
  \subfigure[a]{\includegraphics[width=0.24\textwidth]{...}}
  \label{fig:aa}
\end{figure}



\begin{figure}
\begin{floatrow}
\ffigbox
  {\begin{tikzpicture}
    \end{tikzpicture}
  }
  {\caption{One}}\label{fig:1}}
\killfloatstyle
\ttabbox
{\scriptsize
\begin{tabular}{ll}
    \hline
    column1a & column2a \\
    column1b & column2b \\
    column1c & column2c \\
    \hline
  \end{tabular}
}
{\caption{2}\label{tab:ss}}
\end{floatrow}
\end{figure}


\end{document}

Best Answer

From your question I guess, that you like to have independent numbering figures in tables even if they are partly in the same float:

enter image description here

Is this, what you like to achieve? The code for above image is:

\documentclass[a4paper]{article}
    \usepackage{graphicx}
    \usepackage{capt-of}

    \begin{document}
\begin{figure}[hbt]
  \centering
\includegraphics[width=0.2\textwidth]{example-image-a}
  \caption{figure a}
  \label{fig:a}
\end{figure}
some text
\begin{figure}[hbt]
  \centering
\includegraphics[width=0.2\textwidth]{example-image-b}
  \caption{figure b}
  \label{fig:b}
\end{figure}

some text
\begin{figure}[hbt]
    \begin{minipage}{0.48\hsize}
\includegraphics[width=0.9\hsize]{example-image-c}
  \captionof{figure}{figure c}
  \label{fig:c}
\end{minipage}
    \hfill
\begin{minipage}{0.48\hsize}
\begin{tabular}{ll}
    \hline
    column1a & column2a \\
    column1b & column2b \\
    column1c & column2c \\
    \hline
  \end{tabular}
\captionof{table}{table 1}
    \label{tab:1}
\end{minipage}
    \end{figure}

 Regarding to figures \ref{fig:a}, \ref{fig:b}, \ref{fig:c} and table \ref{tab:1} \dots
    \end{document}

As you can see, for it I didn't use float nor floatrow. Desired goal I obtain by use of small package capt-of. For example-images I also add package graphicx. I'm not familiar with package llncs, but I'm sure that it will not interfere to shoved solution.

By the way, in the preamble of your document some packages are load twice ...