Latex表格

持续更新。只要我用到一个表格,我就会放上来,不断增加表格样式。

方便随时直接复制粘贴使用。

样式一:

\usepackage{times}
\usepackage{soul}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{multirow}
\begin{table*}[t]
\centering
\begin{tabular}{ccc|ccc}
\toprule[1pt]

\multicolumn{3}{c|}{Components} & \multicolumn{3}{c}{Metrics} \\
\hline
C1 & C2 & C3  &M1 & M2 & M3  \\
\hline
w/o& w/o& w/o &6 & 14 & 0.7\%  \\
w/o& w/o& w/o  & 3 &  6.87 &  0.3 \% \\
w/& w/o& w/o  &8 & 9 & 0.5\% \\
w/o& w/& w/o & 51 & 85 & 0.2\%  \\
w/o& w/& w/  &\textbf{6} & \textbf{3} &  \textbf{9\%} \\

\bottomrule[1pt]
\end{tabular}
\centering
\caption{This can be used for ablation study.}
\label{ablation}
\end{table*}

样式二

效果:

\begin{table}[t]
\centering
\begin{tabular}{ccc|ccc}
\toprule[1pt]

\multicolumn{3}{c|}{Components} & \multicolumn{3}{c}{Metrics} \\
\hline
C1 & C2 & C3  &M1 & M2 & M3  \\
\hline
w/o& w/o& w/o &6 & 14 & 0.7\%  \\
w/o& w/o& w/o  & 3 &  6.87 &  0.3 \% \\
w/& w/o& w/o  &8 & 9 & 0.5\% \\
w/o& w/& w/o & 51 & 85 & 0.2\%  \\
w/o& w/& w/  &\textbf{6} & \textbf{3} &  \textbf{9\%} \\

\bottomrule[1pt]
\end{tabular}
\centering
\caption{This can be used for performance comparison.}
\label{ablation}
\end{table}

multirow multicolumn

\begin{table}[h]
    \centering
    \begin{tabular}{c|c|c|c}
    \toprule[1pt]
         \multirow{2}{*}[-1.1ex]{Datasets} & \multicolumn{2}{c|}{Accuracy} & \multirow{2}{*}[-1.0ex]{$\frac{\textbf{MI(X, Y)}}{\textbf{MI(A, Y)}}$}  \\
         \cmidrule{2-3}
         & GIN & GIN-DGIB & \\
         \hline
         PROTEINS & 91\% & 0.95\% & 0.8 \\
         ENZYMES & 91\% & 0.95\% & 0.8 \\
         NCI1 & 91\% & 0.95\% & 0.8 \\
         CC & 91\% & 0.95\% & 0.8  \\
    \bottomrule[1pt]
    \end{tabular}
    \caption{datasets.}
    \label{tab:my_label}
\end{table}
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值