原 文:There were undefined references
译 者:Xovee
翻译时间:2020年6月2日
There were undefined references
当你使用命令 \ref{...}
,但是 LaTeX 找不到对应的标签的时候,这个错误就会出现。出错有以下三种可能:
- 在
\label{...}
中你可能打错了字 - 在
\ref{...}
中你可能打错了字 - 你可能忘记了添加标签 label
下面展示了一个例子:
\section{introduction}\label{introduction}
A typo when referencing the introduction would be \ref{intorduction}.
Another error is referencing a label which has never been defined such as \ref{section1}
这三种错误的报错方式如下:
为了避免这个错误,我们在使用 \ref{...}
命令的时候,必须要确保对应的 \label{...}
是存在的,并且这两个命令的参数是一致的。