LaTeX 表格
普通表格
Body:
\begin{table}[h] % h: here, t: top, b: bottom, p: page
\begin{center}
% 一个字母代表一列
\begin{tabular}{|c|cccc|} % c: center, l: left, r: right
\hline
& 00 & 01 & 11 & 10 \\
\hline
0 & $m_0$ & $m_1$ & $m_3$ & $m_2$ \\
1 & $m_4$ & $m_5$ & $m_7$ & $m_6$ \\
\hline
\end{tabular}
\end{center}
\caption{表格说明}
\label{tab:1} % 引用标签
\end{table}

三线表
Preamble:
\usepackage{booktabs}
Body:
\begin{table}[h]
\centering
\begin{tabular}{cccc}
\toprule % 第一道横线
Item 1 & Item 2 & Item 3 & Item 4 \\
\midrule % 第二道横线
Data 1 & Data 2 & Data 3 & Data 4 \\
Data 5 & Data 6 & Data 7 & Data 8 \\
\bottomrule % 第三道横线
\end{tabular}
\caption{表格说明}
\label{tab:2}
\end{table}
center和centering的区别是:center和上下文之间有垂直间隙,而centering没有

常用示例 1
\begin{table}[ht]
\centering\small
\caption{\textbf{Title.} text.}
\vspace{5pt}
\begin{tabular}{lccc}
\toprule
Method & LPIPS\,$\downarrow$ & SSIM\,$\uparrow$ & CLIP-I\,$\uparrow$ \\
\midrule
OOTDiffusion &0.203 &0.752 &0.861 \\
{IDM–VTON} (ours)& \textbf{0.164} & \textbf{0.795} & \textbf{0.901} \\
\bottomrule
\end{tabular}
\label{tab:appendix_wild}
\end{table}

粗体表示最高分,下划线表示次高分
常用示例 2
\begin{table}[ht]
\centering\small
\caption{\textbf{Title.} text.}
\vspace{5pt}
\setlength\tabcolsep{1pt}
\begin{tabular}{@{}ll cccc c cccc@{}}
\toprule
&Train / Test & \multicolumn{4}{c}{VITON-HD / VITON-HD} && \multicolumn{4}{c}{ VITON-HD / DressCode} \\
\cmidrule{3-6}
\cmidrule{8-11}
&Method & LPIPS\,$\downarrow$ & SSIM\,$\uparrow$ & FID\,$\downarrow$ & CLIP-I\,$\uparrow$ && LPIPS\,$\downarrow$ & SSIM\,$\uparrow$ & FID\,$\downarrow$ & CLIP-I\,$\uparrow$ \\
\midrule
&OOTDiffusion
& 0.120 & 0.846 & 6.39 &0.858&
& 0.087 & 0.901 & 10.68 & 0.852 \\
&IDM-VTON~(ours)
& \textbf{0.102} & \textbf{0.870} & \textbf{6.29} & \textbf{0.883} &
& \textbf{0.062} & \textbf{0.920} & \textbf{8.64} &\textbf{0.904} \\
\bottomrule
\end{tabular}
\label{tab:appendix_viton}
\end{table}


浙公网安备 33010602011771号