O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – customizing the hyperlink appearance

We shall pass options to hyperref affecting the way hyperlinks are emphasized:

  1. Open the file preamble.tex again. This time, specify the options for hyperref:
    \usepackage[colorlinks=true,linkcolor=red]{hyperref}
  2. Save this document, go to the main document equations.tex, and compile it twice. The table of contents is changed:
    Time for action – customizing the hyperlink appearance

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} ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required