Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

using the \documentclass{llncs} instead of for example \documentclass{book} will not make the captions aligned together for the following example. How can I do to align them together:

\documentclass{llncs}
\usepackage{capt-of, showframe, blindtext}
\usepackage[demo]{graphicx}
\begin{document}
\blindtext

\begin{table}[t]\fbox{
\begin{minipage}[b]{.50\textwidth }%
\footnotesize
\begin{tabular}{ | c || c | c | c | c | } \hline
\textbf{ABC} & \textbf{KO} & \textbf{Ro} & \textbf{Ov} & \textbf{Params} \\ \hline
\multicolumn{5}{|c|}{\textbf{Well this is a text here}} \\ \hline
\textit{A1} & 123 & 123 & 123 & 123 \\ \hline
\textit{Z2} & 123 & 123 & 123 & 123 \\ \hline
\multicolumn{5}{|c|}{\textbf{Well this is another text here)}} \\ \hline
\textit{O1} & 123 & 123 & 123 & 123 \\ \hline
\textit{U9} & 123 & 123 & 123 & 123 \\ \hline
\end{tabular}%
\caption{results in this table}\label{validation}%
\end{minipage}}%
\fbox{\begin{minipage}[b]{.45\textwidth}%
\hspace*{0pt}\includegraphics[width=0.45\textwidth]{plot.pdf}%
\captionof{figure}{This is a figure not a table\label{x}}%
\end{minipage}}
\end{table}

\end{document}
share|improve this question
    
Table captions should generally be placed above tables, as discussed here: why-should-a-table-caption-be-placed-above-the-table. This question seems pretty similar to your other question –  cmhughes Jul 5 '12 at 22:10
    
@cmhughes for which I didn't get "the" answer. –  user995434 Jul 6 '12 at 20:30
add comment

1 Answer

You may add an invisible anchor at the end of the minipages:

\begin{table}[t]
\begin{minipage}[b]{.50\textwidth }%
\footnotesize\centering

\begin{tabular}{ | c || c | c | c | c | } \hline
\textbf{ABC} & \textbf{KO} & \textbf{Ro} & \textbf{Ov} & \textbf{Params} \\ \hline
\multicolumn{5}{|c|}{\textbf{Well this is a text here}} \\ \hline
\textit{A1} & 123 & 123 & 123 & 123 \\ \hline
\textit{Z2} & 123 & 123 & 123 & 123 \\ \hline
\multicolumn{5}{|c|}{\textbf{Well this is another text here)}} \\ \hline
\textit{O1} & 123 & 123 & 123 & 123 \\ \hline
\textit{U9} & 123 & 123 & 123 & 123 \\ \hline
\end{tabular}

\medskip

\caption{\strut results in this table}\label{validation}
\hrule height 0pt
\end{minipage}%
\begin{minipage}[b]{.45\textwidth}
\centering
\includegraphics[width=0.45\textwidth]{plot.pdf}

\captionof{figure}{\strut This is a figure not a table\label{x}}

\hrule height 0pt
\end{minipage}
\end{table}

The \strut is used to ensure equal height and depth to the captions.

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.