Using hyperlinks and bookmarks
There's a sophisticated package called hyperref
that does nearly all basic hyperlinking automatically. Let's check it out.
Adding hyperlinks
We shall load the hyperref
package and inspect its effect:
- Open the
preamble.tex
file, which we used in the previous chapter. At the 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
. - Compile the document twice without making any changes. Let's see how the document now appears; here, we can see red boxes indicating hyperlinks:
Cross-references, such as references to equation numbers, also have red boxes:
By just loading the hyperref
package, our document has significantly changed...