我想把我的數字和圖表放在頁面的頂部。這個有圖作品
\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
fortables的等效環境是table
環境。將您包裹tabu
在一個table
環境中:
\begin{table}[t]
\begin{tabu} to 0.8\columnwidth { | X[c] | X[c] | }
...
\end{tabu}
\caption{Some caption.}
\end{table}