反向引用表格

反向引用表格

我做了一个表格,代码如下:

\begin{table*}[t]
\resizebox{\textwidth}{!}{
\begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|l|l|}
\hline
 &
  \multicolumn{4}{c|}{TuckER} &
  \multicolumn{4}{c|}{TuckER-bk} &
  \multicolumn{4}{c|}{TuckER-bk-score} \\ \hline
 &
  Hits@10 &
  Hits@3 &
  Hits@1 &
  MRR &
  Hits@10 &
  Hits@3 &
  Hits@1 &
  MRR &
  Hits@10 &
  Hits@3 &
  Hits@1 &
  MRR \\ \hline
Symmetric &
  0.9588 &
  0.9570 &
  0.9453 &
  0.9512 &
  \cellcolor[HTML]{FE996B}0.9606 &
  \cellcolor[HTML]{F8A102}0.9588 &
  \cellcolor[HTML]{F56B00}0.9471 &
  \cellcolor[HTML]{CE6301}0.9530 &
  \cellcolor[HTML]{FFFFFF}0.9597 &
  0.9570 &
  0.9462 &
  0.9520 \\ \hline
Asymmetric &
  0.1658 &
  0.1340 &
  0.1022 &
  0.1238 &
  \cellcolor[HTML]{FE996B}0.1692 &
  \cellcolor[HTML]{F8A102}0.1358 &
  0.1055 &
  0.1270 &
  0.1691 &
  0.1357 &
  \cellcolor[HTML]{F56B00}0.1089 &
  \cellcolor[HTML]{CE6301}0.1284 \\ \hline
Both &
  0.6888 &
  \cellcolor[HTML]{F8A102}0.6766 &
  0.6527 &
  0.6670 &
  \cellcolor[HTML]{FE996B}0.6912 &
  0.6760 &
  \cellcolor[HTML]{F56B00}0.6544 &
  \cellcolor[HTML]{CE6301}0.6677 &
  0.6830 &
  0.6667 &
  0.6480 &
  0.6600 \\ \hline
\end{tabular}
}
\end{table*}

我希望以后能够通过写“引用表 ****”来引用它,我想知道我该怎么做?

答案1

您需要\label{tbl:...}在表格中添加如下代码

\begin{table*}[t]
\centering
\caption{Name of the Table here}
\label{tbl:name to use when you wants to refer}
\resizebox{\textwidth}{!}{
\begin{tabular}{|c|c|}
    \hline
    &  \\
    \hline
    &  \\
    \hline
\end{tabular}
}
\end{table*}

那么你想参考哪里包括\ref{tbl:name to use when you wants to refer}

Table \ref{tbl:name to use when you wants to refer} show us a ....

这种引用也适用于以以下开头的所有对象:\begin

相关内容