tex >> Hacking natbib to have page reference in the bibliography entries

by marco.chiarandini » Sat, 16 Apr 2005 04:01:07 GMT

Hallo,

I would like to add the page number where a reference is cited to each
entry of the bibliography generated by natbib.

I know of the existence of the package "index", but it generates a new
index and I would like to avoid this, having and "all in one" list of
references.

Probably I should hack natbib.sty but I do not know how.

is there someone who can help me.

Thank you for the consideration,

Marco



tex >> Hacking natbib to have page reference in the bibliography entries

by Maarten Sneep » Sat, 16 Apr 2005 05:26:27 GMT

In article < XXXX@XXXXX.COM >,



fairly common requirement: have a look at the hyperref documentation,
and possibly the backrefx docs.

This should get you started:

\usepackage[backref=page,pagebackref]{hyperref}
\usepackage{backrefx}

Maarten


tex >> Hacking natbib to have page reference in the bibliography entries

by marco.chiarandini » Mon, 18 Apr 2005 16:59:43 GMT

Thank you for the hint.

I checked the documentation and it sounds correct but I encounter
problems.

If I use the two packages as you suggest I get:


! LaTeX Error: \backrefalt undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.53 \renewcommand*{\backrefalt}
[4]{%




If I avoid the use of backrefx which is discouraged because obsolete I
get:

! Use of \@item doesn't match its definition.
\text@command #1->\def \reserved@a {
#1}\ifx \reserved@a \@empty \let
\check@...
l.49



Finally, if I avoid even the use of hyperref and use just the package
backref:

\usepackage[pageref]{backref}

it compiles fine but in the bibliography I get the word "pages" but no
page number...

Any further suggestion??


Thank you!

Marco


P.S. I am using scrbook but I get the same effects using book.



tex >> Hacking natbib to have page reference in the bibliography entries

by Danie » Mon, 18 Apr 2005 18:39:22 GMT

I think you have an ancient version of hyperref and backref. Update to
the newest versions.

CTAN/macros/latex/contrib/hyperref

Danie Els



tex >> Hacking natbib to have page reference in the bibliography entries

by Jellby » Mon, 18 Apr 2005 21:08:45 GMT

Among other things, XXXX@XXXXX.COM saw fit to write:


I think I had what you want with:

\usepackage{natbib}
\usepackage[pagebackref]{hyperref}
\usepackage{hypernat,backrefx}

Things might have changed now that backrefx is obsolete, but maybe
"hypernat" is what you need (although it seems it's only for
sort&compress)? Or maybe it's a version issue, as Danie points out.

--
Ignacio __ Ferndez Galv
/ /\
Linux user / / \ PGP Pub Key
#289967 / / /\ \ 0x01A95F99
/ / /\ \ \
http://djelibeibi.unex.es
/________\ \ \
jellby \___________\/ yahoo.com


tex >> Hacking natbib to have page reference in the bibliography entries

by marco.chiarandini » Mon, 18 Apr 2005 23:49:38 GMT

Dear all,

thank you for the consideration.
I updated the hyperref package and I tried again. Now this
\usepackage[pageref]{backref}
works fine.

All the othes with hyperref package directly included, and with
Ignacio' hypernat suggestion yield the following error message:


! Use of pdfmark@ doesn't match its definition.
@ifnextchar ...t reserved@d =#1def reserved@a {#2}
def reserved@b
{#3}futurel...
l.49

?
! Argument of pdfmark@ has an extra }.
<inserted text>
par
l.49

?
! Undefined control sequence.
reserved@a ->@nil





Regards,

Marco



Similar Threads

1. natbib - reference entries

Dear Reader!

I recently started using the "natbib" package 
for having control over the citation style.
Over the citation style I have full control.
However the reference list appears not like I want.
I use:

\documentclass[12pt,oneside]{book}
%
\usepackage[authoryear]{natbib}
\citestyle{agsm}
%
\begin{document}
...
\cite{first} 
...

\begin{thebibliography}{}
%
\bibitem[Jones et al. 1999]{first}
Jones G.H., Minsk J.F. and Shen Y.L., 1999,
''Titel of publication'', Proceedings of ..., ..., pp. 1233--4566.
%
\end{thebibliography}
...
\end{document}

After compiling the LaTeX file, in the reference list 
I get the entry as follows:

[Jones et al. 1999] Jones G.H., Minsk J.F. and Shen Y.L., 1999,
     "Titel of publication", Proceedings of ..., ..., pp. 1233-4566.

The first part of the entry [Jones et al. 1999] I don't want to have
printed. Did I do something wrong? Or is there anything else I have
to do? I didn't find anything in the natbib-doc about controlling
the reference/bibliography entries.
In advance thanx for your comments and suggestions


Thomas
OO
OO

2. Beamer slides, Natbib references, but no bibliography

3. bibunit, natbib, scrbook and page headers in bibliography sections

Hello all,

I'm using the scrbook class to typset my thesis.  I've used the
packages bibunit and natbib to generate a separate bibliography for
each chapter.

... However, there is a problem: for all pages which form part of the
bibliography sections at the end of each chapter, the page headers are
changed to read "Bibliography" (instead of the chapter name).

Any way of fixing this?  I was suggested to put the following,

\makeatletter
\def\bib@headings{\chapter*{\bibname}}
\makeatother

into my LaTeX file prior to calling the natbib and bibunit packages,
but it doesn't work.

Any ideas how to fix this so that the headers are as normal for
chapters?

Many thanks,

      -- Joe

4. Bibliography layout (stopping entries being split over two pages)

5. suppressing page breaks within a bibliography entry

Latex is splitting my bibliography entries between pages.  How do you
suppress this behavior?

Cheers,

Kyle Benne

6. Bibliography - How to force an entry on same page

7. Page number in bibliography entries?

How can I get bibliography entries that list the page number on which
they were cited? For example,

A.N. Other, A magnificent piece of work, J. Irreproducible Res., Vol.
1, No. 1, pp. 1-11, 2009 [34,71]

where the [34,71] indicates that the entry was cited on pages 34 and
71.

Thanks!

8. natbib flavour "numbers" breaks hyperref back-references to pages