I want to:
-
make
\href
more visible by adding boxes (in red or green) like the other hyperref links have. -
Ideally, I want this boxes to show up in the PDF but disappear when the PDF is printed (otherwise I can just generate two documents, one for viewing and one for printing).
EDIT:
the boxes disappear if in the following I uncomment the colorlinks
line
\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
\hypersetup{
% colorlinks,
breaklinks,
linkcolor=darkblue,
urlcolor=darkblue,
anchorcolor=darkblue,
citecolor=darkblue
}
Is there a way to be able to color \href
links while preserving the box?
Best Answer
By default there is a cyan box around the
\href
link text:is shown as:
The cyan border is not printed. It is only visible in the PDF viewer.
hyperref
itself does not provide colored links with borders. Optioncolorlinks
always switches off the link borders. But you can try to setpdfborder
to0 0 1
afterhyperref
has activated colored links in\begin{document}
:This will result in
I do not like this. It's just too much.