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*}