
我正在編寫一份包含一些圖形的文檔,每個圖形都有一個標籤,我正在使用參考文獻。使用的每個圖形都出現在圖形清單中,但從文字引用時則不會出現。當我這樣做時,它會列印“...如圖所示??”。
一個例子是:
GPS coordinates look like in Figure~\ref{fig:coord}.
\begin{figure}[h]
\centering
\includegraphics{/img/coord.png}
\caption{GPS coordinates representation}
\label{coord}
\end{figure}
這裡的問題出在哪裡呢?
答案1
您的標籤是coord
但您透過引用fig:coord
。兩者必須相同。
此外,提供一個最小的範例始終是一個好習慣。
\documentclass{article}
\begin{document}
GPS coordinates look like in Figure~\ref{fig:coord}.
\begin{figure}[h]
\centering
% \includegraphics{/img/coord.png}
\caption{GPS coordinates representation}
\label{fig:coord}
\end{figure}
\end{document}