如何开始{tabu}[t]?

如何开始{tabu}[t]?

我想将图表和情节放在页面顶部。此图表适用于

\begin{figure}[h]

\begin{minipage}[b]{1.0\linewidth}
  \centering
  \centerline{\includegraphics[width=8.5cm]{results}}
%  \vspace{2.0cm}
  \centerline{(a) Result 1}\medskip
\end{minipage}
%
\begin{minipage}[b]{.48\linewidth}
  \centering
  \centerline{\includegraphics[width=4.0cm]{results}}
%  \vspace{1.5cm}
  \centerline{(b) Results 3}\medskip
\end{minipage}
\hfill
\begin{minipage}[b]{0.48\linewidth}
  \centering
  \centerline{\includegraphics[width=4.0cm]{results}}
%  \vspace{1.5cm}
  \centerline{(c) Result 4}\medskip
\end{minipage}
%
\caption{Example of placing a figure with experimental results.}
\label{fig:res}
%
\end{figure}

但下面的代码不起作用。

\begin{tabu}[t] to 0.8\columnwidth { | X[c] | X[c] | }
    \hline
    \textbf{Methods} & \textbf{Time in seconds} \\
    \hline
    MCG-D & 160  \\
    \hline
    MCG  & 100  \\
    \hline  
    SS  & 15 \\
    \hline  
    EB & 1.5  \\
    \hline  
    3DOP &  1.2 \\
    \hline  
    BING &  \textbf{0.01} \\
    \hline
    \textbf{Ours} & 0.12 \\
    \hline
\end{tabu}

答案1

figure表格的等效环境是table环境。将您的包装tabutable环境中:

\begin{table}[t]
  \begin{tabu} to 0.8\columnwidth { | X[c] | X[c] | }
  ...
  \end{tabu}
  \caption{Some caption.}
\end{table}

相关内容