Hi gmedina,
Thx for your reply. If figured out what causes the problem: it's the addition of the option "sort&compress" for the natbib package (\usepackage[sort&compress,comma, numbers]{natbib}). It makes multiple refs [1,2,3] appear as [1-3]. Since 2 isn't on the page, it doesn't get backrefs. 1 and 3 are fine (page(s) still works like a charm) but 2 is skipped since it is not displayed. If I remove the option, all backrefs appear as they should.
I haven't been able to find a way around this. Can you think of one? Except for the very obvious removal of the sort&compress option; refs like [6, 7, 8, 9, 10, 11] just look awful…
For completion here's the code I used:
Code: Select all
\documentclass[12pt,a4paper]{report}
\usepackage[sort&compress, comma, numbers]{natbib}
\usepackage[pagebackref={true}]{hyperref}
\renewcommand*{\backreflastsep}{, }
\renewcommand*{\backreftwosep}{, }
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{%
\ifcase #1 %
\relax %
\or
(page #4).%
\else
(pages #4).%
\fi%
}
\begin{document}
\citep{Hahn,Purcell, CarrPurcell}
\newpage
\citep{Hahn,Purcell, CarrPurcell}
\bibliographystyle{unsrtnat}
\bibliography{Biblio}{}
\end{document}
And the biblio:
Code: Select all
@ARTICLE{Hahn,
AUTHOR = {E.L. Hahn},
TITLE = {Spin Echoes},
JOURNAL = {Physical Review},
YEAR = {1950},
volume = {80},
pages = {580-594},
}
@ARTICLE{Purcell,
AUTHOR = {E.M. Purcell and H.C. Torrey and R.V. Pound},
TITLE = {Resonance absorption by nuclear magnetic moments in a solid},
JOURNAL = {Physical Review},
YEAR = {1946},
volume = {69},
pages = {37-38},
}
@ARTICLE{CarrPurcell,
AUTHOR = {H.Y. Carr and E.M. Purcell},
TITLE = {Effects of diffusion on free precession in nuclear magnetic resonance experiments},
JOURNAL = {Physical Review},
YEAR = {1954},
volume = {94},
pages = {630-638},
}