Time for action – customizing the hyperlink appearance
We shall pass options to hyperref
affecting the way hyperlinks are emphasized:
- Open the file
preamble.tex
again. This time, specify the options forhyperref
:\usepackage[colorlinks=true,linkcolor=red]{hyperref}
- Save this document, go to the main document
equations.tex
, and compile it twice. The table of contents is changed:
What just happened?
Instead of frames, we now got a red color for emphasized links. The color can be seen in a printed document.
hyperref
offers ways to set up the options. The first one we used is:
\usepackage[key=value list]{hyperref}
Alternatively, we could just write \usepackage{hyperref} ...
Get LaTeX Beginners Guide 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.