This is possible with
\bgroup
\hypersetup{linkcolor = black}
\listoffigures
\egroup
or more compact (but maybe not as obvious) with brackets for grouping
{\hypersetup{linkcolor = black} \listoffigures}
or alternatively without the grouping but an additional \hypersetup{linkcolor = red}
after the \listoffigures
:
\hypersetup{linkcolor = black}
\listoffigures
\hypersetup{linkcolor = red}
The hyperref package uses either colorlinks=true
, i.e. the links are shown in some other colour than black, or colorlinks=false
, in which case the text of the links is black (or whatever colour is set e.g. with \color
) and there is a coloured rectangle around it. The colorlinks
-option cannot be changed with \hypersetup
.
Nevertheless it is possible to do this:
\usepackage[colorlinks=false,linkbordercolor=red,...]{hyperref}
to get red rectangles around the links,
\listoffigures
\hypersetup{linkbordercolor = white}
to get rid of the rectangles after the list of figures,
{\color{red}\ref{something}}
to get red links (needed for each & every link!). Probably something like
\newcommand*{\myref}[1]{{\color{red}\ref{#1}}}
in the preamble (after loading the hyperref
package) and using \myref
instead of \ref
would be easier, maybe even re-defining \ref
.
You would also need to do this colour-management for the other types of links!
(BTW: For blue rectangles it is linkbordercolor=blue
.)
Using the xcolor package it is also possible to use
\colorlet{foo}{red}
\colorlet{red}{blue}
\listoffigures
\colorlet{red}{foo}
The links (either text or rectangle) in the \listoffigures
would be printed in blue, and the links afterwards in red again. The question "How do I combine link-colouring and link-borders with the hyperref-package?" is probably best asked as new question in my humble opinion.
Using linktoc=page
or linktocpage
, in the hyperref setup, allows you get sections' page numbers with red colored borders while the section name remains plain text.
This option doesn't change the rest of the document.
\documentclass[a4paper, 12pt]{amsart}
\usepackage{hyperref, xcolor}
\usepackage{cite}
\hypersetup{
backref,
colorlinks=false,
linktocpage,
pdfborder = {0 0 1 [1 0] }
}
\begin{document}
\title{test}
\maketitle
\tableofcontents
\section{Introduction}
In \cite[Thm 1]{work}...see section \S\ref{next} next
\section{Next}\label{next}
\begin{thebibliography}{99}
\bibitem[work]{work} \textit{July, 2013}
\end{thebibliography}
\end{document}
Best Answer
The default colour for (internal) links are red, provided by the key
linkcolor
. To keep links active but with ablack
colour, useFor more on link colours, see section 3.5 Extension options of the
hyperref
HTML documentation.