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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem with cross-referencing in the appendix of the document I'm writing, \ref is not working properly and I only get ??.

I'm using a LaTeX template for writing Ph.D. Thesis that can be found at Texis page. I'm working with Miktex2.8 and TeXnicCenter under Windows 7.

In the master document you can find:



In chapter 2

E0996 & 11-12/09/1996 & 520 & 524.5 \\ \midrule
E1000 & 21-26/10/2000 & 376 & 570 \\ \midrule
E0502 & 06-08/05/2002 & 400 & 516 \\ \midrule
E1007 & 10-12/10/2007 & 400 & 404.4 \\ \midrule
\caption[Listado de eventos precipitación]{Listado preliminar de eventos de precipitación torrencial en la \cv  (PMAX=Precipitación máxima)}

and in appendix 3

  some text \ref{cap2:tab:listaeventos}

But the result is not a reference but ??

Any suggestion? I have found some relatively similar questions here but none has fixed my problem.

share|improve this question
Welcome to TeX.sx! This should actually work. You of course compiled the document twice? Try to minimize the document until the error disappear to find the cause. See the thread about how to create a minimal working example (MWE) for more information. – Martin Scharrer Jun 28 '11 at 14:10
up vote 3 down vote accepted

Magic crystal ball guess: you're using \includeonly and haven't compiled chapter 2 since you put in the \label?

(One thing you could check is whether the string "cap2:tab:listaeventos" does appear in the file 02Metadologia.aux, which it should.)

share|improve this answer
No, I used \include, not \includeonly and compiled the document 3 times. Maybe the point was the Miktex installation, I made an update and maybe something was broken. I have upgraded Miktex to version 2.9 and now it work's fine. As you said I have also checked that \label was located after \caption and that it appeared at 02Metodologia.aux – pacomet Jun 29 '11 at 11:51

Your Answer


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.