GeneralBibliography not linked correctly

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jameschampion01
Posts: 9
Joined: Mon Jun 17, 2013 4:39 pm

Bibliography not linked correctly

Post by jameschampion01 »

Hi all,

this week I have started using LaTeX for the first time. I have created a bibliography using BibTeX. To get the bibliography into the contents page, I used this command.

Code: Select all

\addcontentsline{toc}{chapter}{Bibliography}
However the page number for the bibliography section does not always update automatically in my contents page. Also when I use the hyperref package in the preamble, clicking on the bibliography section once converted to a PDF leads me to the section directly before the bibliography rather than the bibliography itself.

It seems that hyperref does not explicitly recognize the Bibliography as a chapter if it is created using BibTeX. Does anyone have any ideas on how to get round this? Just that it would be useful for anyone reading my compiled document to be be able to click straight to my list of references.

Thank you for your time,

James

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography not linked correctly

Post by localghost »

jameschampion01 wrote:[…] To get the bibliography into the contents page, I used this command.

Code: Select all

\addcontentsline{toc}{chapter}{Bibliography}
[…]
Use the package tocbibind instead and load it before hyperref.


Thorsten
jameschampion01
Posts: 9
Joined: Mon Jun 17, 2013 4:39 pm

Re: Bibliography not linked correctly

Post by jameschampion01 »

Thanks for the reply. I tried using the package tocbibind but got the error message: ! LaTeX Error: File `tocbibind.sty' not found.

Do you know where I can install the tocbibind package from? Is there a website where it be installed from?

Thanks, James
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography not linked correctly

Post by localghost »

jameschampion01 wrote:[…] Do you know where I can install the tocbibind package from? Is there a website where it be installed from? […]
Packages are usually installed by the package manager of your TeX distribution. And perhaps you are interested in some LaTeX resources.
jameschampion01
Posts: 9
Joined: Mon Jun 17, 2013 4:39 pm

Re: Bibliography not linked correctly

Post by jameschampion01 »

How does one access their package manager? I'm using protext and miktex

Thanks

James
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Bibliography not linked correctly

Post by Johannes_B »

Should be somewhere in the MikteX-entry of your start-menu.
http://docs.miktex.org/manual/pkgmgt.html
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Bibliography not linked correctly

Post by localghost »

The MiKTeX Package Manager is described in the MiKTeX manual. That's compulsive reading when working with this distribution.
Post Reply