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:
Is this, what you like to achieve? The code for above image is:
As you can see, for it I didn't use
float
norfloatrow
. Desired goal I obtain by use of small packagecapt-of
. Forexample-image
s I also add packagegraphicx
. I'm not familiar with packagellncs
, 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 ...