Time for action – adding hyperlinks
We shall load the hyperref
package and inspect its effect:
Open the file
preamble.tex
, which we used in the previous chapter. At its end, add this line:\usepackage{hyperref}
Save this document under the same name.
Open our book of equations from the previous chapter; we called it
equations.tex
.Typeset the document twice without making any changes. Let's see how the document now appears!
The Chapter 1 looks like the following screenshot:
What just happened?
By just loading the hyperref
package, our document has significantly changed:
We got a bookmark bar, which allows us to easily navigate through the document.
Each entry in the table of contents has become a hyperlink to the beginning of the corresponding chapter respectively. Hyperlinks are marked by red frames.
All cross-references have become hyperlinks.
This is a great improvement for electronic versions of our documents! The print version would not be affected—neither the bookmarks nor those red frames would...