LaTeX写作中比较好看的三线表源码

由于平常会看到一些比较好的会议期刊论文里面的表格显得特别的专业,也就想在以后的论文中使用,故自己尝试在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画表格知识

  • 6
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

laizi_laizi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值