Adding hyperlinks

At first, LaTeX was used to produce high-quality prints on paper. Since the output was device independent from the beginning, the results can be viewed on screens, tablets, and smartphones as well.

With electronic publishing, we get access to very handy features. Most importantly, hyperlinks, which allow us to easily navigate within a document. In this recipe, we will deal with providing hyperlinks in the PDF.

How to do it...

We will use the hyperref package for providing hyperlinks in the PDF. It provides a user-friendly interface to access PDF features, such as hyperlinks. You can test it with our examples from Chapter 1, The Variety of Document Types, by performing the following steps:

  1. Open the book example from the first chapter ...

Get LaTeX Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.