\documentclass{article}
\usepackage{float}%提供float浮动环境
\usepackage{booktabs}%提供命令\toprule、\midrule、\bottomrule
\begin{document}
%经典三线表
\begin{table}[H]
\caption{\textbf{Result}}%标题
\centering%把表居中
\begin{tabular}{cccc}%四个c代表该表一共四列,内容全部居中
\toprule%第一道横线
Dataset &Metric &AttnGAN &AttnGAN-MS\\
\midrule%第二道横线
CUB&FID&23.98&18.36\\
CUB&SI&4.36&4.56 \\
\bottomrule%第三道横线
\end{tabular}
\end{table}
\end{document}
Latex 三线表
最新推荐文章于 2024-08-04 15:51:55 发布