由于平常会看到一些比较好的会议期刊论文里面的表格显得特别的专业,也就想在以后的论文中使用,故自己尝试在LaTex中复现这些表格,在这里整理供大家一起使用。
以下源码均在overleaf环境中经过测试:
1. 以下两个表格都出自论文《Bridging Search Region Interaction with Template for RGB-T Tracking》
由简入繁,从第一个表格开始
LaTeX代码块:
注意这里使用了\toprule和\bottomrule三线表相关命令,需要导入包\usepackage{booktabs}
\begin{table}[h!]
\centering
\begin{tabular}{c|c|c|c}
\toprule
\textbf{Method} & \textbf{Precision} & \textbf{NormPrec} & \textbf{Success} \\ [0.5ex]
\hline\hline
RGB Baseline & 50.1 & 45.4 & 40.1 \\
RGB-T Baseline & 53.5 & 49.1 & 42.5 \\
\hline
w/o Template Bridging & 59.6 & 55.9 & 47.4 \\
w/o RGB$\rightarrow$TM$\rightarrow$TIR & 58.7 & 55.1 & 46.6 \\
w/o Template Updating & 62.7 & 58.9 & 49.7 \\
\hline
Full Model (TBSI) & \textbf{63.8} & \textbf{60.2} & \textbf{50.6} \\
\bottomrule
\end{tabular}
\end{table}
这个跟上面的比就不规则了点,多了竖着的,并且还有表格单行添加背景颜色的
注意这里需要导入包 \usepackage{booktabs} \usepackage{multirow} \usepackage{colortbl} \usepackage{rotating}
\begin{table}[h]
\begin{tabular}{cc|c|c}
\toprule
\multicolumn{2}{c|}{\textbf{Method}} & \multicolumn{1}{l|}{\textbf{Precision}} & \multicolumn{1}{l}{\textbf{Success}} \\
\hline\hline
\multicolumn{1}{c|}{\multirow{4}{*}{\rotatebox{90}{\textbf{ \scriptsize Online}}}} & TFNet & 77.7 & 52.9 \\
\multicolumn{1}{c|}{} & CAT & 79.2 & 53.3 \\
\multicolumn{1}{c|}{} & DMCNet & 79.7 & 55.5 \\
\multicolumn{1}{c|}{} & mfDiMP$^{\ast}$ & 84.9 & 59.3 \\ \hline
\multicolumn{1}{c|}{\multirow{2}{*}{\rotatebox{90}{\textbf{\scriptsize Offline}}}} & DSiamMFT & 64.2 & 43.2 \\
\multicolumn{1}{c|}{} & \cellcolor{lightgray}TBSI & \cellcolor{lightgray}85.3 & \cellcolor{lightgray}62.5 \\
\bottomrule
\end{tabular}
\end{table}
2. 以下表格出自论文《FAML-RT: Feature Alignment-based Multi-level Similarity Metric Learning Network for a Two-stage Robust Tracker》
注意这里使用了\checkmark 命令,需要导入包\usepackage{amssymb}
这个表格整体还是比较简单的,主要里面设计几个罗马数字可以用来实验排序说明的,还有几个对勾特殊符号,所以这里也给一下:
\begin{table}[h]
\centering
\small
\begin{tabular}{c | c c c | c c c}
\toprule
& FA module & CLNet & SLNet & AUC $\uparrow$ & DP20$ \uparrow$ & Fps $\uparrow$\\
\midrule
\textrm{I} & & & & 0.641 &0.841 & 180 \\
\textrm{II} & & \checkmark & & 0.666 &0.876 & 147 \\
\textrm{III} & & & \checkmark & 0.664 &0.875& 144 \\
\textrm{IV} & & \checkmark & \checkmark & 0.672 &0.889 & 118\\
\midrule
\textrm{V}&\checkmark & \checkmark & & 0.677 &0.888 & 96\\
\textrm{VI}&\checkmark & & \checkmark & 0.679 &0.892 & 89 \\
\textrm{VII}&\checkmark & \checkmark & \checkmark & 0.686 &0.912 & 60\\
\bottomrule
\end{tabular}
\end{table}
3. 以下表格出自论文《OSP2B: One-Stage Point-to-Box Network for 3D Siamese Tracking》
看过上面的例子这个就不难了,本来想要实现一下单元格内换行和下划线的,不过看着单元格内换行是用两行实现的,其实也可以用\tabincell
命令实现,所以也需要导入\usepackage{multirow}
包
\begin{table}[h]
\centering
\resizebox{0.95\columnwidth}{!}{
\begin{tabular}{cc|cccc}
\toprule[0.5mm]
&Category & Veh & Ped & Cyc & Mean\\
&Frame Number & 53,377 & 27,308 & 5,374& 86,095 \\
\midrule
\midrule
\multirow{4}{*}{\rotatebox{90}{\textit{Success}}}
&SC3D & 46.5 & 26.4 & 26.5 & 33.1 \\
&P2B & 55.7 & 35.3 & 30.7 &40.6 \\
&PTTR & \underline{58.7} & \textbf{49.0} & \textbf{43.3} & \textbf{50.3} \\
\cmidrule{2-6}
&OSP2B (ours) & \textbf{59.2} & \underline{46.6} & \underline{43.0} &\underline{49.6} \\
\midrule
\midrule
\multirow{4}{*}{\rotatebox{90}{\textit{Precision}}}
&SC3D & 52.7 & 37.8 & 37.6 & 42.7 \\
&P2B & 62.2 & 54.9 & 44.5 &53.9 \\
&PTTR & \underline{65.2} & \textbf{69.1} & \underline{60.4} & \underline{64.9} \\
\cmidrule{2-6}
&OSP2B (ours) & \textbf{67.3} & \underline{67.4} & \textbf{62.5} &\textbf{65.7} \\
\bottomrule[0.5mm]
\end{tabular}}
\end{table}
之后看到好看再补充或者大家不会的可以私信
Acknowledgments
一些基础latex画表格知识