TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 was wondering why pdflatex displays some references in the text as question marks the first time that the file is compiled? For instance, with bibliographies at the end of an article that are referenced in the text that is the case - the first time I compile the document, I get questionmarks instead of numbers that point to respective entries. The second time it's fine.

Does this mean that pdflatex goes through the document only once?

share|improve this question
up vote 12 down vote accepted

Yes. That's right. While going through the document, the engine writes all related informations, such as placement of the labels, etc. into an extra file with the suffix .aux. At the second run, this file is read and used for resolving the labels.

share|improve this answer

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.