The hyperref
manual doesn't seem to document a way of turning different types of links (citation, url, cross-reference, file, ToC, footnote) on/off independently.
One possible scenario would be to enable all links created with \href
(url links) but disable all other types of links. Another scenario would be to enable all citations links but disable all other types of links.
How can that be done?
One related question is Selectively turn off hyperref links, but it only addresses how to turn cross-reference links off.
Best Answer
Package
hyperref
supports only a subset of possible options to turn off "hyperfeatures":bookmarks=false
: bookmarks/outlinespdfpagelabels=false
: PDF page labelshyperfootnotes=false
: footnoteshyperindex=false
: indexpageanchor=false
: page anchorsAlso
hyperref
provides environmentNoHyper
.URL links only
A modified version of
NoHyper
could be used to disable all, but URI links.For example:
Citation links only
The following example tries to enable citation links (not tested with
natbib
). Also anchors need to be enabled to get link targets for the citations.