BibLaTeX – How to Count the Number of Times Each Reference is Cited

biblatexbibliographiescitingcounters

I am writing a paper, and I would like to be able to find out automatically how many times each reference is cited. This could either be appended to the references in a printed version, or outputted as a separate file.

I've seen Check if an entry is cited multiple times, but it focusses on checking each reference at the point of citation, while I want to do an overall count.

The reasons are twofold. Firstly, to see if any references are being 'overcited'. Secondly, if space becomes an issue, to be able to see easily which references are only being cited once and could potentially be removed with minimum fuss.

Best Answer

If you're willing to switch to biblatex, you may use the citecounter feature that was added in v1.3.

\documentclass{article}

\usepackage[citecounter=true]{biblatex}

\renewcommand{\finentrypunct}{%
  \addperiod\space
  (Cited \arabic{citecounter}~time\ifnumequal{\value{citecounter}}{1}{}{s})%
}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
@misc{B02,
  author = {Buthor, B.},
  year = {2002},
  title = {Bravo},
}
@misc{C03,
  author = {Cuthor, C.},
  year = {2003},
  title = {Charlie},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\nocite{*}

\begin{document}

Some text \autocite{A01}.

Some text \autocite{B02}.

Some text \autocite{A01}.

\printbibliography

\end{document}

enter image description here

Related Question