incorrect page reference in table of contents

570 views
Skip to first unread message

r

unread,
Aug 5, 2010, 7:25:56 AM8/5/10
to LaTeX Users Group
Readers,

I have noticed that the toc file generated by the latex command:

\addcontentsline{toc}{chapter}{Bibliography}

has an entry:

\contentsline {chapter}{Bibliography}{1}{chapter*.2}

But the page shown in the table of contents is not 1. Can anyone
explain

yours,

la...@conference.jabber.org

Peter Flynn

unread,
Aug 5, 2010, 8:33:51 AM8/5/10
to latexus...@googlegroups.com
On Thu, Aug 5, 2010 at 12:25 PM, r <inp...@gmail.com> wrote:
Readers,

I have noticed that the toc file generated by the latex command:

\addcontentsline{toc}{chapter}{Bibliography}

has an entry:

\contentsline {chapter}{Bibliography}{1}{chapter*.2}

But the page shown in the table of contents is not 1. Can anyone
explain

That's not a standard \contentsline. The normal one says

\contentsline {chapter}{Bibliography}{1}

You must be using an additional class or package...what is it, and what does the documentation for it say?

///Peter


Donald Arseneau

unread,
Aug 5, 2010, 6:48:23 PM8/5/10
to LaTeX Users Group
On Aug 5, 4:25 am, r <inp...@gmail.com> wrote:
> I have noticed that the toc file generated by the latex command:
>
> \addcontentsline{toc}{chapter}{Bibliography}
>
> has an entry:
>
> \contentsline {chapter}{Bibliography}{1}{chapter*.2}

(extra argument due to hyperref presumably)

> But the page shown in the table of contents is not 1. Can anyone
> explain

You put your \addcontentsline on a different page than the
bibliography, obviously.

Use
\cleardoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{mybib}
Reply all
Reply to author
Forward
0 new messages