c****s 发帖数: 2487 | 1 There are two figures in one article and they both
are numbered as 1 and 2 respectively. However, the two
references turn out to be 2 and 3, which are actually
the numbers of the sections where the figures are
included. WHYYYYYYYYY? /bow....
hope the following explanation could be clear enough...
%%%%%%%%%%%%%%
\documentclass{article}
...
\section{sec1}
...
Fig.~\ref{fig1}
...
\section{sec2}
\begin{figure} \label{fig1}
...
\section{sec3}
\begin{figure} \label{fig2}
...
Fig.~\ref{ | H****n 发帖数: 125 | 2 The \label of figure should be right after the \caption{}
of the figure.
Try to fix this first, and see what'll happen
【在 c****s 的大作中提到】 : There are two figures in one article and they both : are numbered as 1 and 2 respectively. However, the two : references turn out to be 2 and 3, which are actually : the numbers of the sections where the figures are : included. WHYYYYYYYYY? /bow.... : hope the following explanation could be clear enough... : %%%%%%%%%%%%%% : \documentclass{article} : ... : \section{sec1}
| c****s 发帖数: 2487 | 3 haha, that's exactly the reason!
I put the labels right behind \begin{figure}
many sanx!
【在 H****n 的大作中提到】 : The \label of figure should be right after the \caption{} : of the figure. : Try to fix this first, and see what'll happen
|
|