hyperref
hyperref copied to clipboard
Suggestion for hyperref: option to disable links but keep the colors.
This code (from https://chat.stackexchange.com/transcript/message/65785587#65785587)
\makeatletter
\def\hyper@linkstart#1#2{\begingroup\color{\csname @#1color\endcsname}}
\def\hyper@linkend{\endgroup}
\def\hyper@link#1#2#3{{\color{\csname @#1color\endcsname}#3}}
\makeatother
might be useful as an option to hyperref, in order to disable the links but keeping the colors like hidelinks but keeping the colors.
A situation where this is very useful is then working on long projects and using \includeonly. Then if you're working on Chapter 9, and that is the only thing loaded via \includeonly then one get a lot of
pdfTeX warning (dest): name{foo.bar} has been referenced but does not exist, replaced by a fixed one
which cannot be disabled. By removing the link, these go away. The hyperlinks to the other chapters does not work anyway under \includeonly.