Strange, even if I open your changed MWE, I don't get underlined hyperlinks. 
Any idea what I'm doing wrong?
LyX 2.4.1, Windows 11.
Stef
________________________________
Van: Udicoudco <udifog...@gmail.com>
Verzonden: zondag 22 september 2024 19:20
CC: Stef Pillaert <stef.pilla...@kuleuven.be>; lyx-users 
<lyx-users@lists.lyx.org>
Onderwerp: Re: How to underline and color hyperlinks?

>> Am Sonntag, 22. September 2024, 10:59:28 CEST schrieb Stef Pillaert:
>> > Something I'm struggling with for a long time now...
>> > A (probably simple?) thing: I don't succeed in giving hyperlinks both a
>> > color and underline them.
>>  I want this, since my students often print my
>> > course material in black&white (easier reading/studying than reading on
>> > laptop screen, and B/W is a lot cheaper then printing in color 🙁). This
>> > way, they sometimes don't see/notice that there is actually a hyperlink
>> > they should click on (what they have to do starting from the digital
>> > version of the of the text, of course 😉) Thanks for pointing me in the
>> > right direction. I've added a MWE, so you can see what settings I'm using.
>> > Stef
>>

The colorlinks option disables link borders pretty late,
so you will need to enable them back in the begindocument
hook (or later).  Adding the line

\AtBeginDocument{\hypersetup{pdfborderstyle={/S/U/W 1}}}

to the preamble underlines the links, see the attached.

Udi

> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to