由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
TeX版 - 怎么总是说reference找不到?
相关主题
问一个pdfpages package 的问题求教一个tex中插入eps图片的问题
请教关于subfigure的问题怎么让minipage里的多图竖排列并居中?
How to remove a figure from the list of figures?how to add the description under the figure
请教两个插图的问题latex单栏文档中如何双栏显示图片
请问怎么把两幅图并排放?用不同的标题?为什么我插入表格后,后面文字和表格间会留一大块空白?
请教双列文档放figure的问题latex图表问题---急
新手请问插图问题2列文章里面跨列图片
[合集] Latex 插入figure的一个问题很多figure怎么include?
相关话题的讨论汇总
话题: fig话题: demo话题: figure话题: reference话题: label
进入TeX版参与讨论
1 (共1页)
J*****n
发帖数: 48
1
我明明在figure里面用了\ref{fig:demo}了,引用的时候
总是说Reference `fig:demo' on page 16 undefined
这是怎么回事?
s**********r
发帖数: 46
2
compile twice?

【在 J*****n 的大作中提到】
: 我明明在figure里面用了\ref{fig:demo}了,引用的时候
: 总是说Reference `fig:demo' on page 16 undefined
: 这是怎么回事?

g**g
发帖数: 1575
3

\label{fig:demo}

【在 J*****n 的大作中提到】
: 我明明在figure里面用了\ref{fig:demo}了,引用的时候
: 总是说Reference `fig:demo' on page 16 undefined
: 这是怎么回事?

p*****i
发帖数: 1183
4
figure里面用的应该是\label{fig:demo}

【在 J*****n 的大作中提到】
: 我明明在figure里面用了\ref{fig:demo}了,引用的时候
: 总是说Reference `fig:demo' on page 16 undefined
: 这是怎么回事?

J*****n
发帖数: 48
5
I just figured out how this could happen but still don't know why:
previously I used
\begin{figure}\begin{center}...\end{center}\label{fig:demo}\end{figure}
which produced the wrong reference number,
then I changed to
\begin{figure}\centering ...\label{fig:demo}\end{figure}
now it produced the correct number.
s***t
发帖数: 195
6
do you have a \caption in your figure env? it's \caption who produces
the label. figure or table by itself doesn't produce labels.

【在 J*****n 的大作中提到】
: I just figured out how this could happen but still don't know why:
: previously I used
: \begin{figure}\begin{center}...\end{center}\label{fig:demo}\end{figure}
: which produced the wrong reference number,
: then I changed to
: \begin{figure}\centering ...\label{fig:demo}\end{figure}
: now it produced the correct number.

J*****n
发帖数: 48
7
sorry, its my typo.
I did use \label{fig:demo} in my figure and \ref{fig:demo} in text.
still not working.

【在 p*****i 的大作中提到】
: figure里面用的应该是\label{fig:demo}
T*******n
发帖数: 493
8
\documentclass{article}
\begin{document}
See Figure \ref{fig:demo}.
\begin{figure}
\centering
\fbox{Demo}
\caption{Caption}
\label{fig:demo}
\end{figure}
\end{document}

【在 J*****n 的大作中提到】
: sorry, its my typo.
: I did use \label{fig:demo} in my figure and \ref{fig:demo} in text.
: still not working.

1 (共1页)
进入TeX版参与讨论
相关主题
很多figure怎么include?请问怎么把两幅图并排放?用不同的标题?
请教如何用beamer把slides做成handout以便打印?请教双列文档放figure的问题
图和文本要求分开,文本中怎么refer图呢?新手请问插图问题
为什么 \neq 会出错呢?[合集] Latex 插入figure的一个问题
问一个pdfpages package 的问题求教一个tex中插入eps图片的问题
请教关于subfigure的问题怎么让minipage里的多图竖排列并居中?
How to remove a figure from the list of figures?how to add the description under the figure
请教两个插图的问题latex单栏文档中如何双栏显示图片
相关话题的讨论汇总
话题: fig话题: demo话题: figure话题: reference话题: label