Is there a way to change LaTeX's printing of "?" and "??" whenever there are missing citations or references.
Motivation:
Too many times I have compiled a document or presentation without checking my log files, and it was only later when I noticed the missing reference or citation. Imagine noticing the missing reference while you are presenting! Of course, that has never happened to me.

Ideal Solution:
So, what I would like to do is make the "?" or "??" really pop out of the page so that upon quick glance, one can see a missing reference or citation. For example, if I could simple change the "?" to "MISSING CITATION" and change the "??" to "MISSING REFERENCE", that would be great. Ideally, though, I would like to give it some color if I use the color package so that "?" would become
Code: Select all
\colorbox{red}{?citation?}
Code: Select all
\colorbox{red}{?reference?}
Of course, I don't know if a MWE is needed for such a question, but here is one:
Code: Select all
Code, edit and compile here:
\documentclass{article}\begin{document}This is a missing reference: \ref{somefig}.This is a mssing citation: \cite{somebib}.\end{document}
Thanks all !