1

I have added a bibliography to my document in LaTeX which is 2 1/2 pages long. In the contents page the page number for the Bibliography is recorded as the final page of the bibliography instead of the first. So it starts on page 56 and ends on page 58, with the contents page displaying page 58.

This is where the bibliography is added.

\bibliography{SFBib}
\bibliographystyle{plainnat}
\addcontentsline{toc}{chapter}{Bibliography}

And the contents page:

\tableofcontents

Could anyone suggest how to display the correct page numbering on the contents page?

  • I think you've got the order wrong for \bibliography{SFBib} \bibliographystyle{plainnat} \addcontentsline{toc}{chapter}{Bibliography}. Try putting the \addcontentsline. (not 100% sure, but give that a try) – jedison Apr 29 '14 at 12:04
  • I have put the \addcontentsline first and a \clearpage before that as it was showing the previous page to the bibliography instead. Seems to work now though, thanks. – Tom smith Apr 29 '14 at 12:32
  • Ah, cool. Annoying that you need a \clearpage, but I think that is due to the nature of the bibliography. I posted this as an answer so that others know. If it works for you, click that it worked. – jedison Apr 29 '14 at 12:39
  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Apr 29 '14 at 19:35
1

I think you've got the order wrong for

\bibliography{SFBib} 
\bibliographystyle{plainnat} 
\addcontentsline{toc}{chapter}{Bibliography}

Try putting the

\addcontentsline

first and a

 \clearpage

before that.

  • Welcome to TeX.sx! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your post. – Werner Apr 29 '14 at 19:36
  • So, in essence, use \clearpage\addcontentsline.... – Werner Apr 29 '14 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy