I am using TeXstudio 4.7.2 (git 4.7.2), Using Qt Version 6.6.0, compiled with Qt 6.6.0 R on an older Mac under Monterey 11.7.3.
I have the ugly red boxes around hyperlinks problem, which are showing in the compiled PDF. To remove these boxes, and to recolour the hyperlink text, I saw the question on better colours for hyperref. I read the answers, and I have looked at the manual. There is also a question on just changing header colours but I thought that would be overkill given I just want the same black colour in the ToC and there is a menucolor option.
What I would like is to have a navy blue text for all hyperlinks, and no boxes around any of them for the body of the document. The ToC would just be plain black with no boxes around the text.
My preamble now contains:
\usepackage[table, dvipsnames]{xcolor}
\usepackage[colorlinks]{hyperref}
\usepackage{cleveref}
whereas before it was
\usepackage[table]{xcolor}
\usepackage{hyperref}
\usepackage{cleveref}
I have inserted
\hypersetup{
linkcolor=NavyBlue,
citecolor=NavyBlue,
urlcolor=NavyBlue,
menucolor=black,
linkbordercolor=[rgb]{0,0,0},
citebordercolor=[rgb]{0,0,0},
urlbordercolor=[rgb]{0,0,0},
menubordercolor=[rgb]{0,0,0}
}
And everything works perfectly except the TOC is NavyBlue and not black. I have tried using Black with a capital letter and removing the menucolor option completely. I still get NavyBlue. The bibliography (I'm using natbib) and glossary are fine (the glossary page number links are in blue, which I am okay with).
How do I get the ToC to render as black text? I would like to retain the functionality that the ToC text and the page number are both clickable links.
menucoloris for "Color for Acrobat menu items" according to the manual, which is not the same as the TOC. These are 'normal' links, so they followlinkcolor. – Marijn Feb 04 '24 at 22:12\hypersetup{linkcolor=black}before\tableofcontentsand\hypersetup{linkcolor=NavyBlue}after probably works to change the color temporarily. – Marijn Feb 04 '24 at 22:14