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 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.

share|improve this question
add comment

2 Answers

up vote 35 down vote accepted

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

share|improve this answer
add comment

You can use the backref or pagebackref options to hyperref to get links to section or page numbers after each reference in the bibliography if you don't want to switch to biblatex.

share|improve this answer
1  
IIRC, the backref option doesn't tell you if a reference was cited multiple times on the same page. –  lockstep Mar 24 '11 at 14:22
    
@lockstep: Yes, you're absolutely right. I should have pointed out that this just gives a rough indication of how often a reference is cited. (Also, I could have sworn I upvoted your answer...fixed.) –  TH. Mar 24 '11 at 14:25
5  
@lockstep: with version 1.21 or later of backref there is the \backrefalt formatting hook that gives access to the number of duplicate citations. Since version 1.33 the \backrefentrycount wrapper makes this more easily accessible. –  Lev Bishop Mar 24 '11 at 15:19
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.