The following code places the figure and table one after another instead of side by side.
What's going wrong?
\begin{figure}
\begin{minipage}[t]{0.4\linewidth}
\centering
\caption{}\label{fig}
\includegraphics[scale=.4]{image}\label{}
\end{minipage}
\end{figure}
\hfill
\begin{table}
\begin{minipage}{0.5\linewidth}
\begin{center}
\caption{}\label{}
\scalebox{0.9}{
\setlength{\tabcolsep}{.6em}
\begin{tabular}{ |c c c c c | }
\end{tabular}
}
\end{center}
\end{minipage}
\end{table}
center
environment inside oftable
orfigure
, use\centering
instead, ascenter
results in unwanted additional vertical space.\documentclass
,\begin{document}
,\end{document}
and every package that is necessary to compile your example but nothing more, similar to my answer below.floatrow
. See§ 2.3.1, Mixed rows
in the documentation (pp. 20-21).