原 文: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{...}
是存在的,並且這兩個命令的參數是一致的。