Discussion:
hyperref - making some liks a different colour
(too old to reply)
Hillevi Gavel
2005-09-29 08:00:29 UTC
Permalink
I am creating a hypertext document, using hyperref. I would like to make
some links a different colour from the one I set when loading the
package. I have failed understanding how to do this from reading the
manual. Any hints?

(The reason I want to do this is that I want to differentiate links to
related topics and links to a vocabulary page.)

Hillevi Gavel
Department of Mathematics and Physics
Mälardalens Högskola
Sweden
Heiko Oberdiek
2005-09-29 10:38:33 UTC
Permalink
Post by Hillevi Gavel
I am creating a hypertext document, using hyperref. I would like to make
some links a different colour from the one I set when loading the
package. I have failed understanding how to do this from reading the
manual. Any hints?
The colour options are not limited to \usepackage or the preamble,
they can be used in the whole document. Set the option
inside a group for a temporary change:

\begingroup
\hypersetup{<options for changed link colours>}%
<your link goes here>
\endgroup

Yours sincerely
Heiko <***@uni-freiburg.de>
Hillevi Gavel
2005-09-29 10:55:03 UTC
Permalink
Post by Heiko Oberdiek
Post by Hillevi Gavel
I am creating a hypertext document, using hyperref. I would like to make
some links a different colour from the one I set when loading the
package. I have failed understanding how to do this from reading the
manual. Any hints?
The colour options are not limited to \usepackage or the preamble,
they can be used in the whole document. Set the option
\begingroup
\hypersetup{<options for changed link colours>}%
<your link goes here>
\endgroup
Thank you very much! (Curiously enough, hypersetup is not found in the
Big alphabetical list in the manual. I was looking for something like
that and did not find it.)

Hillevi
Heiko Oberdiek
2005-09-29 13:20:33 UTC
Permalink
Post by Hillevi Gavel
Thank you very much! (Curiously enough, hypersetup is not found in the
Big alphabetical list in the manual. I was looking for something like
that and did not find it.)
This list is a list of *options*, \hypersetup is not an option.
\hypersetup is explained in "3 Package options".

Yours sincerely
Heiko <***@uni-freiburg.de>
Hillevi Gavel
2005-10-03 08:02:48 UTC
Permalink
Post by Heiko Oberdiek
Post by Hillevi Gavel
Thank you very much! (Curiously enough, hypersetup is not found in the
Big alphabetical list in the manual. I was looking for something like
that and did not find it.)
This list is a list of *options*, \hypersetup is not an option.
\hypersetup is explained in "3 Package options".
Ah, now I found it in the manual. I wonder if it might be a good idea to
point out that you *can* change the settings, because I suspect that I
would have missunderstood the text to mean that you set the options once
and for all, if I had found the text to begin with.

Hillevi
Heiko Oberdiek
2005-10-03 10:34:26 UTC
Permalink
Post by Hillevi Gavel
Post by Heiko Oberdiek
Post by Hillevi Gavel
Thank you very much! (Curiously enough, hypersetup is not found in the
Big alphabetical list in the manual. I was looking for something like
that and did not find it.)
This list is a list of *options*, \hypersetup is not an option.
\hypersetup is explained in "3 Package options".
Ah, now I found it in the manual. I wonder if it might be a good idea to
point out that you *can* change the settings, because I suspect that I
would have missunderstood the text to mean that you set the options once
and for all, if I had found the text to begin with.
I do not have the time to rewrite the whole documentation, there are
many things to do in the sources. But I have added the behaviour some
time ago that you get a warning if an option is used too late.

Yours sincerely
Heiko <***@uni-freiburg.de>

Loading...