| 1 |
README for hrefhide package, 2025-01-27, v1.1b |
| 2 |
|
| 3 |
|
| 4 |
TABLE OF CONTENTS |
| 5 |
================= |
| 6 |
|
| 7 |
1 Introduction |
| 8 |
2 Download |
| 9 |
3 Installation |
| 10 |
4 Additional Packages |
| 11 |
5 Package Compatibility |
| 12 |
6 Author/Maintainer |
| 13 |
7 Bug Reports |
| 14 |
8 Known Problems |
| 15 |
|
| 16 |
|
| 17 |
1 INTRODUCTION |
| 18 |
============== |
| 19 |
|
| 20 |
This LaTeX package provides the command \hrefdisplayonly (additionally to |
| 21 |
\href of the hyperref package). While the (hyperlinked) text appears like an |
| 22 |
ordinary \href in the compiled pdf-file, the same text will be "hidden" when |
| 23 |
printing the text. It is not really invisible, but just has the same color as the |
| 24 |
background (default: white). Therefore the layout is not changed when printing |
| 25 |
the document. |
| 26 |
|
| 27 |
Further the commands \hycon and \hycoff (hyper-colour-on/off) can be used |
| 28 |
to simulate switching option ocgcolorlinks of the hyperref package on and off. |
| 29 |
This package is probably obsolete, see section 3: "Alternatives" |
| 30 |
in the documentation. |
| 31 |
|
| 32 |
This material is published under the LPPL 1.3c: This work may be |
| 33 |
distributed and/or modified under the conditions of the LaTeX Project |
| 34 |
Public License, either version 1.3c of this license or (at your option) |
| 35 |
any later version. This version of this license is in |
| 36 |
https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 37 |
and the latest version of this license is in |
| 38 |
https://www.latex-project.org/lppl.txt |
| 39 |
and version 1.3c or later is part of all distributions of |
| 40 |
LaTeX version 2005-12-01 or later. |
| 41 |
|
| 42 |
|
| 43 |
2 DOWNLOAD |
| 44 |
========== |
| 45 |
|
| 46 |
"hrefhide" is available on CTAN: |
| 47 |
https://www.ctan.org/pkg/pagecolor |
| 48 |
|
| 49 |
Also a ZIP file is provided that contains the files: |
| 50 |
the manual (hrefhide.pdf), the example (hrefhide-example.tex), |
| 51 |
the compiled example (hrefhide-example.pdf), |
| 52 |
driver (hrefhide.drv), hrefhide.dtx, |
| 53 |
installation file (hrefhide.ins), |
| 54 |
the style file (hrefhide.sty), |
| 55 |
and this README, already sorted in a TDS tree: |
| 56 |
https://mirror.ctan.org/install/macros/latex/contrib/pagecolor.tds.zip |
| 57 |
|
| 58 |
|
| 59 |
3 INSTALLATION |
| 60 |
============== |
| 61 |
|
| 62 |
Installation with ZIP file in TDS format |
| 63 |
---------------------------------------- |
| 64 |
The ZIP file "hrefhide.tds.zip" contains the files |
| 65 |
sorted in a TDS tree. Thus you can directly unpack the |
| 66 |
ZIP file inside a TDS tree. |
| 67 |
See https://www.ctan.org/TDS-guidelines for an explanation |
| 68 |
of TDS. |
| 69 |
Example: |
| 70 |
cd /...somewhere.../texmf |
| 71 |
unzip /...downloadpath.../hrefhide.tds.zip |
| 72 |
Do not forget to refresh the file name database of this |
| 73 |
TDS tree. |
| 74 |
Example: |
| 75 |
texhash /...somewhere.../texmf |
| 76 |
|
| 77 |
Manual installation |
| 78 |
------------------- |
| 79 |
a) Download the hrefhide files from CTAN. |
| 80 |
If necessary, unpack them. |
| 81 |
b) Generate the package and driver files: |
| 82 |
tex hrefhide.dtx |
| 83 |
c) Install the file "*.sty" in your TDS tree: |
| 84 |
cp hrefhide.sty TDS:tex/latex/hrefhide/ |
| 85 |
Replace "TDS:" by the prefix of your TDS tree |
| 86 |
(texmf directory). |
| 87 |
d) Create the documentation, if necessary, e.g. |
| 88 |
pdflatex hrefhide.dtx |
| 89 |
makeindex -s gind.ist hrefhide.idx |
| 90 |
pdflatex hrefhide.dtx |
| 91 |
makeindex -s gind.ist hrefhide.idx |
| 92 |
pdflatex hrefhide.dtx |
| 93 |
e) Update the databases if necessary, e.g. for TeXLive |
| 94 |
texhash or mktexlsr. |
| 95 |
f) Create the hrefhide-example.pdf, if necessary, e.g. |
| 96 |
pdflatex hrefhide-example.tex |
| 97 |
pdflatex hrefhide-example.tex |
| 98 |
pdflatex hrefhide-example.tex |
| 99 |
g) Copy the documentation files to |
| 100 |
"TDS:doc/latex/hrefhide/": |
| 101 |
README, hrefhide.pdf, hrefhide-example.tex, |
| 102 |
hrefhide-example.pdf. |
| 103 |
|
| 104 |
|
| 105 |
4 ADDITIONAL PACKAGES |
| 106 |
===================== |
| 107 |
|
| 108 |
hrefhide loads other packages: |
| 109 |
- xcolor |
| 110 |
- hyperref |
| 111 |
which again load other packages |
| 112 |
(see the result of the \listfiles command in the log-file |
| 113 |
of the example). |
| 114 |
|
| 115 |
|
| 116 |
5 PACKAGE COMPATIBILITY |
| 117 |
======================= |
| 118 |
|
| 119 |
hrefhide must be loaded AFTER package hyperref: |
| 120 |
|
| 121 |
Package loading order: |
| 122 |
|
| 123 |
\usepackage[ocgcolorlinks]{hyperref} |
| 124 |
\usepackage{hrefhide} |
| 125 |
|
| 126 |
|
| 127 |
6 AUTHOR/MAINTAINER |
| 128 |
=================== |
| 129 |
|
| 130 |
H.-Martin Münch |
| 131 |
|
| 132 |
|
| 133 |
7 BUG REPORTS |
| 134 |
============= |
| 135 |
|
| 136 |
A bug report should contain: |
| 137 |
* Comprehensive problem description. This includes error or |
| 138 |
warning messages. |
| 139 |
* \errorcontextlines=\maxdimen can be added in the |
| 140 |
TeX code to get more information in TeX error messages. |
| 141 |
* Minimal test file that shows the problem, |
| 142 |
but does not contain any unnecessary packages and code. |
| 143 |
* Used drivers/programs. |
| 144 |
* Version information about used packages and programs. |
| 145 |
* If you are using LaTeX, then add "\listfiles" to the document. |
| 146 |
Then a list of version information is printed at the end |
| 147 |
of the LaTeX run. |
| 148 |
* Please no other files than the minimal test file. |
| 149 |
The other files .log, .dvi, .ps, .pdf are seldom |
| 150 |
necessary, so send them only on request. |
| 151 |
* Please .zip or .tar.gz your file(s) before sending them! |
| 152 |
|
| 153 |
Bug address |
| 154 |
----------- |
| 155 |
Bug reports can be send to the maintainer: |
| 156 |
H.-Martin Münch |
| 157 |
<Martin [dot] Muench [at] Uni-Bonn [dot] de> |
| 158 |
|
| 159 |
|
| 160 |
8 KNOWN PROBLEMS |
| 161 |
================ |
| 162 |
|
| 163 |
* as yet: none... - Well, of course there are all issues |
| 164 |
of the hyperref package with ocgcolorlinks option, |
| 165 |
e.g. no linebreaks inside links. The ocgx2 package |
| 166 |
fixes that and therefore probably should be used |
| 167 |
instead of hrefhide. |