hyperref
hyperref copied to clipboard
Shaded boxes around links
Instead of having hyperref color links with a box or changing the color of the text, it would be awesome to have a shaded area around links like this:
the pdf specification doesn't knows an easy way to do this. One could use a \colorbox but this would disable line breaks in the link and also prevent spaces to stretch. An appeareance dictionary wouldn't work in all pdfviewers and would prevent line breaks too.
One could use a
\colorbox
but this would disable line breaks in the link
@u-fischer soul
's \hl
wouldn't have this problem:
\documentclass{article}
\usepackage{xcolor}
\usepackage{soul}
\begin{document}
\hl{test test test test test test test test test test test test test test test
test test test test test test test test test test test test test}
\end{document}
@dbitouze yes you can use it e.g in \href. But I wouldn't want to try to combine this e.g. with \url.
Exactly. I need links to be highlighted like that. Better yet if shaded instead of highlighted.