logo

How to Add Hyperlinks to Bibliography Numbers in LaTeX 📂Writing

How to Add Hyperlinks to Bibliography Numbers in LaTeX

Code

Add \usepackage{hyperref} to the preamble of the document. This package automatically generates links within the document and provides various linking functionalities, including referencing.

You can specify detailed options, for example, in the following code:

  • colorlinks=true: Apply colors to links (the default is a box display),
  • linkcolor=blue: Set the color of internal links to blue,
  • citecolor=green: Set the color of bibliography (reference) links to green.
\usepackage[colorlinks=true, linkcolor=blue, citecolor=green]{hyperref}

(Left) Before applying the above code (Right) After applying the above code