CTAN has a new package: hrefhide
This package provides the command \hrefdisplayonly (instead of \href). While the (hyperlinked) text appears like an ordinary \href in the compiled pdf-file, the same text will be "hidden" when printing the text. It is not really invisible, but just has the same colour as the background (default: white). Therefore the layout is not changed when printing the document.
This package is located at http://tug.ctan.org/tex-archive/macros/latex/contrib/muench/hrefhide . More information is at http://tug.ctan.org/pkg/hrefhide (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
hrefhide – Suppress hyper links when printing
This package provides the command \hrefdisplayonly (additionally to \href provided by the hyperref package). While the (hyperlinked) text appears like an ordinary \href in the compiled pdf-file, the same text will be “hidden” when printing the text. Hiding is actually achieved by making the text the same colour as the background, thus preserving the layout of the rest of the text.
Further the commands \hycon and \hycoff (hyper-colour-on/off) can be used to simulate switching option ocgcolorlinks of the hyperref package on and off.
This package is possibly obsolete, see section 3: “Alternatives” in the documentation.
|Copyright||2010–2023 H.-Martin Münch|