Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use the label command to get a) and b) next to my pictures. AucTeX claims these are all duplicate global labels. I guess I misunderstood the subfigure.

\subfigure[][]{%
  \label{a}
  }%
% later in the document
\subfigure[][]{%
  \label{a}
  }%

Was it a mistake to annotate with label?

Please do not answer with alternatives for subfigure. When I start my next document I will try something different, but I have to fix it this time.

share|improve this question
1  
You mean that for each figure with a subfigure you always start with \label{a} then \label{b} and so on? –  hpesoj626 Dec 16 '12 at 21:35

1 Answer 1

up vote 4 down vote accepted

\label does not produce a visible label it is the internal key (identifier) a symbolic name for the figure so that you can cross reference it from elsewhere in the document with ref{a} . \ref will generate the actual figure number as used by the figure labeled a. Clearly this only works if there is only one such figure.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.