Redian新闻
>
section number interferes with fig label?
avatar
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{
avatar
H*n
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}

avatar
c*s
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。