LaTeX forum ⇒ Theses, Books, Title pagescolouring hyperref links

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
andyxl
Posts: 3
Joined: Mon May 04, 2015 2:28 pm

colouring hyperref links

Postby andyxl » Tue May 05, 2015 12:34 pm

The hyperref set up in structure.tex has colorlinks=false. Why? When I link to a URL it then just appears in plain text so a reader will not know its a link. I can make my own adjustment to structure.tex, or colour the link-text itself, but am I missing something?

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue May 05, 2015 12:43 pm

Hi and welcome, you can change the files to your needs. Many people don't want to use colored links, as they will be printed in color as well. Using the standard setup of hyperref, links will get a red border, which is pretty ugly reading on the screen. But you definitely know that there is a clickable link. May people don't know it, but those borders aren't printed, so this is the perfect setup.
You can even modify the appearence of those borders.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

andyxl
Posts: 3
Joined: Mon May 04, 2015 2:28 pm

Postby andyxl » Tue May 05, 2015 12:54 pm

Wow, quick reply. I do have a hyperref set up cloned from elsewhere that just colours the links blue, without border, but I wanted to understand why the template does it the way it does. Seems the answer is just "otherwise looks ugly when printed". Fair enough.

The other thing that is a slight shame is that I was trying to keep structure.tex as the pristine original, and adding various newcommands of my own in main.tex, just for clarity. But I can't put a new hyperref definition in main.tex without it causing a clash. So be it.

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue May 05, 2015 1:03 pm

You can set your own stuff after inputting structure.tex via \hypersetup{pdfauthor=YourName}.

There are many things in structure.tex that you might need to change, page format, language, the name and title of the document, the inputencoding you are working with ...
Templates are a difficult thing ...

As to why the author of the template decided to go with non-colored links, i don't know. A template should be an example for you, feel free to change it to your needs.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

User avatar
Vel
Site Moderator
Posts: 451
Joined: Fri Jun 29, 2012 1:20 am
Location: Sydney, Australia
Contact:

Postby Vel » Tue May 05, 2015 2:27 pm

I think links aren't colored by default for the reason Johannes said, they would show up as colored if printed.

It's impossible to make a template that will be perfect for everyone and some of the more complicated templates, such as this one, definitely require some work to tailor them to how you want the document to look. The template is essentially a starting point which you should modify to suit your needs.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 4 guests