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 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
add comment

1 Answer

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
add comment

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.