LaTeX无图片编号

来源:互联网 发布:扫码抵扣软件 编辑:程序博客网 时间:2024/06/11 15:15

编译LaTeX文件的时候发现\ref的地方没有编号,是”?”用作占位符。尝试之后发现是\label位置的关系,应该放在\caption后面。

下面是正确的位置:

\begin{figure}\centering\includegraphics[width=\textwidth]{LSTM_model.pdf}\caption{The structure of BLSTM}\label{fig: BLSTM}\end{figure}

下面是不正确的位置:

\begin{figure}\centering\includegraphics[width=\textwidth]{LSTM_model.pdf}\label{fig: BLSTM}\caption{The structure of BLSTM}\end{figure}
原创粉丝点击