Latex表格範例
表格一般都是將Caption放在上方,這點與圖片的配置相反。
table的參數[p!t]表示放在強制開新一頁(p=page;!=force)並且放在整頁的上方(t=top)
置中表格的時候用到的是\begin{center}和\end{center},這點與圖片的置中有些不一樣。
\hline是用來畫表格橫線的,
如果表格要畫直線,則是要設定tabular的參數,例如在1,2欄之間加上表格線就是寫\begin{tabular}{c|ccccc}
\begin{table}[p!t]
\caption{The performance comparison of test image
$1$.}\label{tbl:img1}
\begin{center}
\begin{tabular}{cccccc}
\hline Method & PR & SP & RC & AC & FM \\
\hline
\cite{N01} & 0.5761 & 0.9372 & 0.6886 & 0.9098 & 0.6274 \\
\cite{S02} & 0.6969 & 0.9577 & 0.7841 & 0.9386 & 0.7379 \\
\cite{Z03} & 0.7487 & 0.9865 & 0.5734 & 0.9290 & 0.6495 \\
\cite{G04} & 0.7567 & 0.9740 & 0.6518 & 0.9385 & 0.7003 \\
\cite{K05} & 0.5892 & 0.9245 & 0.8733 & 0.9189 & 0.7036 \\
\cite{M06} & 0.6267 & 0.9384 & 0.8348 & 0.9269 & 0.7160 \\
Proposed & 0.7402 & 0.9612 & 0.8918 & 0.9535 & 0.8090 \\
\hline
\end{tabular}
\end{center}
\end{table}
留言