持续更新。只要我用到一个表格,我就会放上来,不断增加表格样式。
方便随时直接复制粘贴使用。
样式一:
![](https://img-blog.csdnimg.cn/aa80b9e6af524ab9b03ca0788db20731.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NjEwMTgzOQ==,size_16,color_FFFFFF,t_70)
\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}