GeneralHyperref colorlinks trouble

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
hekkendal
Posts: 7
Joined: Mon Oct 11, 2010 1:05 pm

Hyperref colorlinks trouble

Post by hekkendal »

Hi.

Code: Select all

usepackage[colorlinks=true]{hyperref}
\hypersetup{
    linkcolor = blue,
    filecolor = magenta,      
    urlcolor = cyan,
    pdftitle = {},
    bookmarks = true,
    pdfpagemode = FullScreen,
}
This setup still gives me the red boxes around the hyperlinks. As far as I can understand it should not!

Any tips here?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyperref colorlinks trouble

Post by Johannes_B »

Hint: Prepare a minimal working example for us to reproduce the issue.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
hekkendal
Posts: 7
Joined: Mon Oct 11, 2010 1:05 pm

Hyperref colorlinks trouble

Post by hekkendal »

Here is a working code snippet:

Code: Select all

\documentclass[norsk,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel,amsmath,amsfonts,amssymb,textcomp,varioref}
\usepackage[pdftex]{color,graphicx}

\tolerance = 5000
\hbadness = \tolerance
\pretolerance = 2000

\title{}
\author{Someone}
\date{\today}

\usepackage[colorlinks=true]{hyperref}
\hypersetup{
    linkcolor = blue,
    filecolor = magenta,      
    urlcolor = cyan,
    pdftitle = {},
    bookmarks = true,
    pdfpagemode = FullScreen,
}


\begin{document}

\maketitle
\newpage
\tableofcontents
\newpage

\section{Test}
\label{sec:test}


Tis is a test.
\end{document}
I am working on Manjaro, with texlive 2015.37497-3
hekkendal
Posts: 7
Joined: Mon Oct 11, 2010 1:05 pm

Re: Hyperref colorlinks trouble

Post by hekkendal »

Hi again.

Using MikTex in windows gave the desired result without the red boxes!? Seems to be some texlive issue then?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Hyperref colorlinks trouble

Post by Johannes_B »

The online editor seems to be down right now :-(

Please press select all above the code box, save as lcHyperrefColors.tex and run the example. What do you get with you own code? Please post the log-file.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
hekkendal
Posts: 7
Joined: Mon Oct 11, 2010 1:05 pm

Re: Hyperref colorlinks trouble

Post by hekkendal »

Here is the log file for my compiling the given code
Attachments
test.log
(33.43 KiB) Downloaded 275 times
hekkendal
Posts: 7
Joined: Mon Oct 11, 2010 1:05 pm

Re: Hyperref colorlinks trouble

Post by hekkendal »

Ok.
I am ashamed by myself.
This was a setting in the pdf-viewer on my manjaro, and had nothing to do with texlive. All is well and the given code works like a charm.
Post Reply