I would like to have all the broken links in a document come out purple when I compile, and the working links come out whatever color I've set internal links to.
For example, in the following document's output
\documentclass{article}
\usepackage{amsthm,hyperref}
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}\label{catfish}
\end{theorem}
Theorem \ref{catfish} implies the truth of Conjecture \ref{god}.
\end{document}
I would like the working reference to not be purple, and the broken one, rendered as ??, to be purple. Is there a reasonable way to do it? (I am sorry if the question was inherently bad or if it was unclear before.)
P.S.: It might also be useful to compile a list of broken links. How might I do that?
Thank you.
