Am Sonntag, dem 29.09.2024 um 07:50 +0000 schrieb Stef Pillaert:
> Taht's correct, but I want all hyperlinks be like that automatically.
You can do that with the following preamble code:
\usepackage{soul}
\usepackage{color}
\AddToHook{package/hyperref/after}{%
\NewCommandCopy\myurl\url
\RenewDocumentCommand\url{m}{\color{blue}\ul{\mbox{\myurl{#1}}}}
\NewCommandCopy\myhref\href
\RenewDocumentCommand\href{mm}{\color{blue}\ul{\mbox{\myhref{#1}{#2}}}}
}
Note that the drawback is that the links won't be broken across lines.
Having underlined links that print out (as in Word) is simply not
implemented in many PDF viewers, as others have stressed. Personally I
also doubt its usability. In print, having ULRs italicized is much more
convenient (and also conventional).
--
Jürgen
--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users