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

When I reference to non exiting bibliography entry


Instead of error, I result in document with

See [?]

How to do \cite{} checking ? I'd like to prevent citing non-exiting entries.

share|improve this question
You get a warning in the log-file. – Marco Daniel Feb 1 '12 at 16:21
Maybe the refcheck package can help. :) – Paulo Cereda Feb 1 '12 at 16:25
Checking log file solved my problem :) : grep 'LaTeX Warning' *.log . What about refcheck - it's not present in my system so I haven't checked it. – Grzegorz Wierzowiecki Feb 1 '12 at 18:13
@MarcoDaniel - Maybe put your answers on bottom , so I could up-vote or select as solving question – Grzegorz Wierzowiecki Feb 1 '12 at 18:25

When you compile with a citation of an entry that doesn't exist, you will get a message in your log as:

LaTeX Warning: Citation `NonExistant' on page 2 undefined on input line 51.

you log file is situated in the same file as your .tex file with the same name and a .log extension

It would be good practise I suppose to search your log file for the LaTeX Warning string.

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.