section number interferes with fig label?# TeX - TeX电子排版系统
c*s
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{
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{