当前位置: 代码迷 >> 综合 >> latex 表格引用出错 出现?? You have referenced something which has not yet been labelled
  详细解决方案

latex 表格引用出错 出现?? You have referenced something which has not yet been labelled

热度:79   发布时间:2023-12-14 05:46:51.0

latex给表格添加引用并在文章中引用时出错。

'You have referenced something which has not yet been labelled. If you have labelled it already, make sure that what is written inside \ref{} is the same as what is written inside \label{}'.

出错原因,\label{}的位置必须要在\caption{}后面,否则会出错。

示例:

\begin{table*}[ht]\centering\begin{tabular}{l|c|c|c|c|c|c}\hlineDatasets        &   Domains & Task & Diseases & Dialogues & Utterances & Entities \\\hlineMZ\cite{DBLP:conf/acl/WeiLPTCHWD18} & Prediatrics & diagnosis &4 & 710 & - & 70\\ DX\cite{DBLP:conf/aaai/XuZGLTL19} & Prediatrics & diagnosis &5 & 527 & 2,816 & 46\\MIE\cite{DBLP:conf/acl/ZhangJZLCLLZ20} & Cardiology & \ac{NLU} & 6  & 1,120 & 18,129 & 71 \\\hline\end{tabular}\caption{Comparison between our corpus and other human-labeled medical dialogue corpora.}\label{com}
\end{table*}

 

  相关解决方案