# A figure and table side by side [closed]

I tried to insert my plot in many ways in this code but did not work. Can someone kindly please tell me where can I insert my plot below code; especially I dont understand whats \rule{} is also.

\documentclass{article}

\usepackage{floatrow}
% Table float box with bottom caption, box width adjusted to content
\newfloatcommand{capbtabbox}{table}[][\FBwidth]

\usepackage{blindtext}

\begin{document}

\blindtext

\begin{figure}
\begin{floatrow}
\ffigbox{%
\rule{3cm}{3cm}%
}{%
\caption{A figure}%
}
\capbtabbox{%
\begin{tabular}{cc} \hline
Author & Title \\ \hline
Knuth & The \TeX book \\
Lamport & \LaTeX \\ \hline
\end{tabular}
}{%
\caption{A table}%
}
\end{floatrow}
\end{figure}

\end{document}


## closed as too localized by mafp, Kurt, cmhughes, percusse, WernerApr 2 '13 at 0:26

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to TeX.sx! I removed your name as it is given in the right hand corner :) I also removed the thanks- it may seem a little strange, but we like to keep this site more like "Q&A" rather than a forum :) Welcome! – cmhughes Apr 1 '13 at 20:59
• have you seen Table and Figure side-by-side with independent captions ? – cmhughes Apr 1 '13 at 21:23
• Yes, the above code is already been taken the link you provide me.. – sofia Apr 1 '13 at 21:27
• i tried to use \includegraphics{plot4} instead of \rule but it didnt work :( – sofia Apr 1 '13 at 21:28
• Steven thank you so much. Its working now :) – sofia Apr 1 '13 at 22:31