Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Background

I am interested in finding and implementing a more aesthetically pleasing style for the hyperlinks in my document.

I have read through the documentation, but I find both the colored text and the colored boxes to be distracting, particularly when there are many in a page. The "french style" monospace is not distinct enough from the \verb+font+ that I use frequently.

Questions

  1. How can I make hyperref links in a specific font or font style?

  2. What is a pleasing way to indicate references in a document without using too many colors?

share|improve this question
    
To anyone looking for an answer to Q1 (setting the style for links), the accepted answer here doesn’t answer it, but tex.stackexchange.com/questions/79051/… re-asks it and has good answers. –  Peter LeFanu Lumsdaine Dec 3 '12 at 0:51

2 Answers 2

up vote 11 down vote accepted

I would not change the font for the hyperlinks if the document is supposed to be printed. This will make the links stand out even though they have no function in a paper version of your document.

I would suggest using

\usepackage[ocgcolorlinks]{hyperref}

This will make the links colored in the electronic version where it serves a purpose but they will print in black. Use a color from the document color scheme.

share|improve this answer
    
That sounds like a good idea. Now that I have played around with some colors, the document doesn't look so bad. –  David Apr 15 '11 at 1:38
5  
@Martin Heller Just keep in mind that using the ocgcolorlinks option with the hyperref package doesn't wraps long URLs as by using the colorlinks option! –  sokai Feb 21 '12 at 10:59
    
@sokai Please don't misuse the answer space just for posting comments. I converted the non-answer to a comment to Martin's answer. –  Stefan Kottwitz Feb 21 '12 at 11:48

I wasn't really satisfied with the ocgcolorlinks option for the hyperref package, I think the colors don't go well together.

For a fully configurable hyperlinks, you should use the xcolor package with some option in order to have 64 colors that are listed in its documentation.

You can then customize the hyperref package with your desires, like in this example :

\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=NavyBlue,citecolor=Fuchsia]{hyperref}

The links will still appear black when the document is printed, but will appear with the colors you chose in a pdf Viewer.

Hope that helps.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.