有如下图片:
\begin{figure*}[hb] \centering \includegraphics[width=4.5in, height=2.0in]{NCS.png} \label{fig1} \caption{General NCS architecture} \end{figure*}
Latex文件中引用ref{fig1},但编译后出现的是Figure ??。
解决方法:
在figure(table类似)环境中,先写caption{ }, 再写label{ }。也就是说,一定要把label{ }放在caption{ }后面:
\begin{figure*}[hb] \centering \includegraphics[width=4.5in, height=2.0in]{NCS.png} \caption{General NCS architecture} \label{fig1} \end{figure*}