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 would like to change the way the back references are shown in the bibliography, such that they are all shown within parentheses. So I would like to see

(page x, y, z)

after my bibitems. This is what I think could be a starting point...

\usepackage[backref=page]{hyperref}
\renewcommand{\backrefxxx}[3]{(page \hyperlink{page.#1}{#1})}

But obviously this yields

(page x), (page y), (page z)

share|improve this question
add comment

1 Answer

up vote 15 down vote accepted

Here's a solution using biblatex:

\documentclass{article}

\usepackage[backref=true]{biblatex}

\usepackage{hyperref}

\DefineBibliographyStrings{english}{%
  backrefpage = {page},% originally "cited on page"
  backrefpages = {pages},% originally "cited on pages"
}

\usepackage{filecontents}

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

\addbibresource{\jobname.bib}

\begin{document}

Some text \autocite{A01,B02}.

\clearpage

Some more text \autocite{A01}.

\printbibliography

\end{document}

enter image description here

And a brute-force solution for natbib/backref:

\documentclass{article}

\usepackage[numbers]{natbib}

\usepackage[backref=page]{hyperref}

\usepackage{etoolbox}
\makeatletter
\patchcmd{\BR@backref}{\newblock}{\newblock(page~}{}{}
\patchcmd{\BR@backref}{\par}{)\par}{}{}
\makeatother

\usepackage{filecontents}

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

\begin{document}

Some text \citep{A01,B02}.

\clearpage

Some more text \citep{A01}.

\bibliographystyle{plainnat}
\bibliography{\jobname}

\end{document}

enter image description here

share|improve this answer
    
Nice, that solution works. Unfortunately am I using the natbib package (and would like to keep it that way) and that clashes with biblatex... –  D.Roepo Nov 27 '11 at 16:59
    
In (pages 1, 2), is it possible to replace the round brackets with square brackets? –  pluton Apr 27 '12 at 1:34
1  
@pluton \usepackage{xpatch}\xpatchbibmacro{pageref}{parens}{brackets}{}{} –  lockstep Apr 27 '12 at 2:57
    
Great! Thanks a lot. –  pluton Apr 27 '12 at 3:25
    
Does the backref link refer to the exact position of citation or to the whole page of citation? –  Orion Jul 14 '13 at 19:13
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.