33k views

6k views

Where to put the \label on a figure environment? [duplicate]

Possible Duplicate: Why does an environment’s label have to appear after the caption? I noticed that when I put the \label command before the \caption command in a figure environment, I get wrong ...
37k views

How to number figures continuously in documentclass{article} [duplicate]

Currently my document labels figures in a continuous manner (figure 1, figure 2, etc.) but references to these same figures have the section, subsection, etc. number in front of it (3.1.1 for a figure ...
5k views

Wrong figure number at \ref [duplicate]

I'm writing a tex where I have several figures at my chapter 3, I guess it is 27 figures. after my section 3.3 my (figure \ref{fig:.......}) are giving me the wrong figure. when it should be giving ...
13k views

How can I reference figure*'s subfigure? [duplicate]

I'm writing a paper to submit a conference. However, I am having some problems fixing non-resolved references in latex. \begin{figure*}[ht!] \begin{subfigure}[b]{0.3\linewidth} \...
5k views

I want to refer to a figure within a section (say 1.2), using \ref{fig:xyz} Section: \section{XYZ} Figure: \begin{figure} \includegraphics[width=1\linewidth]{xyz.jpg} \label{fig:xyz} \...
3k views

\ref not working with tikz and externalize lib [duplicate]

Possible Duplicate: Why does an environment's label have to appear after the caption? I am using tikz with its externalize library. I create figures with the following coding style: \begin{...
3k views

label/reference isn't working properly [duplicate]

I am labelling my first table and then referencing it later, but the number that comes up when I reference it is completely different from the one in the caption. I am expecting Table 1, but I am ...
1k views

Why are my reference numbers to labels disappearing? [duplicate]

Possible Duplicate: Why does an environment's label have to appear after the caption? In the following example, there are no reference numbers to the figures when I compile using pdflatex: \...
1k views

Why table reference numbers are incorrect? [duplicate]

The code below shows in the caption "table 1", which is correct, but in the text reference, it shows "table 2". How can I fix that? \documentclass[]{article} \begin{document} \section{Description} \...
2k views

Reference to listing not working [duplicate]

I have the following code: \documentclass{article} \usepackage{hyperref} \usepackage{minted} \begin{document} A nice paper has the following things: \begin{listing} \begin{minted}{haskell} ...
2k views

RevTex4-1 figure reference wrong number? [duplicate]

I have included a graphic using \includegraphics into a \begin{figure} \end{figure} in revtex4-1. The figure appears in section II (i.e. 2) but the caption of the figure says Fig.1 (this is not a ...
2k views

Latex: Reference label individual images within figure [duplicate]

Possible Duplicate: Why does an environment's label have to appear after the caption? I currently have: \begin{wrapfigure}{R}{0.3\textwidth} \vspace{-20pt} \begin{center} \...