Consider the following MWE:


If I click and hold a link in the Table of Contents, I get this:

The first picture is if I open the PDF using Foxit reader and the second is in Adobe Reader. Is it possible to change these on-click colors? Or rather, force the viewer to display the ones I want?

Edit: while the example shows links in the ToC, the same colors are used for in-text citations/section references as well.

Edit 2: It's partially viewer dependent. I've updated the question accordingly

  • 2
    You should probably list which viewer you're using. I fir one, have never seen colors like that when interacting with a pdf – daleif Sep 25 '20 at 16:17
  • That was a good tip. I'll update the question – vitalstatistix Sep 25 '20 at 17:17
  • It might have something to do with the /H key in PDF standard. See Table 173 of adobe.com/content/dam/acom/en/devnet/pdf/pdfs/… – Symbol 1 Sep 25 '20 at 17:57
  • So would this key be set in the document or in the viewer? If it were in the document, I'd expect viewers conforming to the standard to be consistent in its display. But Adobe Reader shows the color inversion (option I), the Chrome PDF viewer shows nothing (option N), and Foxit doesn't seem to be doing either – vitalstatistix Sep 25 '20 at 19:23
  • Thanks to @Symbol1's comment, I found this question: tex.stackexchange.com/questions/176907/…. I guess custom colors aren't possible but it is a little controllable – vitalstatistix Sep 25 '20 at 19:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.