Re: Referencing Figures With Labels Does Not Work



On Jul 14, 12:43 pm, Lars Madsen <dal...@xxxxxxxxxxxxxxxxxxxxx> wrote:
GName wrote:
I am wondering why the \ref{} did not return the figure number when
used through the body of the document. It worked fine when I used
\begin{figure} ... \end{figure} environment. However I am not
interested in floating objects.
Any suggestion?

\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage[pdftex]{color,graphicx}

\begin{document}
.
.
. DOCUMENT BODY
.
Figure \ref{Cartoon} shows a cartoon that was drawn in 1992.

\begin{center}
\includegraphics[width=291pt, height=114pt]{Cartoon.png}\\
\vskip 0.08in
\textbf{Figure 1:}{This cartoon was drawn in 1992.}\label{Cartoon}
\end{center}

\end{document}

Many thanks

that is not a caption, use \caption{text}, otherwise where will not be a
number is the referencable sence.

--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL belowhttp://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxamplhttp://www.minimalbeispiel.de/mini-en.html


Unfortunately, \caption{} can only be used inside float environments.
As you can see the, I want two things:
1) Non-floating objects (I want to control the place where which the
figure is placed, at least the order of figures).
2) To reference such figures for further referencing.
Thanks

.



Relevant Pages

  • Re: Referencing Figures With Labels Does Not Work
    ... \endenvironment. ... interested in floating objects. ... LaTeX FAQ: http://www.tex.ac.uk/faq ... To reference such figures for further referencing. ...
    (comp.text.tex)
  • Re: why cannot assign to function call
    ... which is a reference to an object. ... /environment/; if the environment assigns a meaning to a name, ... the enclosing block, i.e., within the inner block, a few names are bound ... to new meanings, while all the other names retain whatever meaning they ...
    (comp.lang.python)
  • Outlook 2003 Object Library load failure
    ... test sites for over a year. ... started failing in my test environment with a runtime filenotfound error. ... Further research revielded that the Object Library reference for Outlook has ... a GAC reference instead of Copy Local True. ...
    (microsoft.public.outlook.program_vba)
  • Re: global variables, no lexical address
    ... The variable reference in the ... value in the environment. ... I used the wrong word - globals. ... the variable name with something like (lexical-ref 5) you would replace it ...
    (comp.lang.scheme)
  • Re: Restore a DTS Packaga Saved As Visual Basic File?
    ... opened the saved DTS Visual Basic file in the following environment: ... Attempted to add Reference to the project: [Microsoft DTSPackage Object Library] but got the following error message.. ...
    (microsoft.public.sqlserver.dts)