
私はいくつかの図を含む文書を書いています。各図には 1 つのラベルがあり、参照を使用しています。使用されているすべての図は図のリストに表示されますが、テキストから参照する場合は表示されません。その場合、「...図のように?」と印刷されます。
例:
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}