Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for hyperref: option to disable links but keep the colors. #345

Open
daleif opened this issue Jun 11, 2024 · 0 comments
Open

Comments

@daleif
Copy link

daleif commented Jun 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant