Debian Codegraph @

texmf-dist/doc/latex/hrefhide/hrefhide-example.tex

raw
1 %%
2 %% This is file `hrefhide-example.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% hrefhide.dtx (with options: `example')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: hrefhide
12 %% Version: 2025-01-27 v1.1b
13 %% Info: Hiding hyperrefs when printing pdf files
14 %%
15 %% Copyright (C) 2010 - 2025 by
16 %% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3c or later is part of all distributions of
26 %% LaTeX version 2005-12-01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainer of this work is H.-Martin Muench.
31 %%
32 %% This work consists of the main source file hrefhide.dtx,
33 %% the README, and the derived files
34 %% hrefhide.sty, hrefhide.pdf,
35 %% hrefhide.ins, hrefhide.drv,
36 %% hrefhide-example.tex, hrefhide-example.pdf.
37 %%
38 %% In memoriam
39 %% Claudia Simone Barth + 1996-01-30
40 %% Tommy Muench + 2014-01-02
41 %% Hans-Klaus Muench + 2014-08-24
42 %%
43 \NeedsTeXFormat{LaTeX2e}[2024-11-01]
44 \documentclass[british]{article}[2024/06/29]% v1.4n Standard LaTeX document class
45 \usepackage{lipsum}[2021-09-20]% v2.7 150 paragraphs of Lorem Ipsum dummy text
46 \usepackage[ocgcolorlinks,bookmarks=false,bookmarksopen=false%
47 ]{hyperref}[2024-11-05]% v7.01l Hypertext links for LaTeX
48 \hypersetup{extension=pdf,%
49 plainpages=false,%
50 pdfpagelabels=true,%
51 hyperindex=false,%
52 pdflang={en},%
53 pdftitle={hrefhide package example},%
54 pdfauthor={H.-Martin Muench},%
55 pdfsubject={Example for the hrefhide package},%
56 pdfkeywords={LaTeX, hrefhide},%
57 pdfview=Fit,pdfstartview=Fit,%
58 pdfpagelayout=SinglePage%
59 }
60 \usepackage[linktextcolour=black,backgroundcolour=white,pdfborder={0 0 1}%
61 ]{hrefhide}[2025-01-27]% v1.1b Hiding hyperrefs when printing pdf files (HMM)
62 \listfiles
63 \begin{document}
64 \pagenumbering{arabic}
65 \section*{Example for hrefhide}
66 \markboth{Example for hrefhide}{Example for hrefhide}
67
68 This example demonstrates the use of package\newline
69 \textsf{hrefhide}, v1.1b as of 2025-01-27 (HMM).\newline
70 The used options were \texttt{linktextcolour=black},
71 \texttt{backgroundcolour=white}, and \texttt{pdfborder={0 0 1}}
72 (the default ones).\newline
73 For more details please see the documentation!\bigskip
74
75 \textit{Print-\textbf{preview} the first page of this document
76 and compare it with the page as displayed in your pdf reader.}\bigskip
77
78 Lorem ipsum dolor sit amet \href{\#target}{link to target} consectetuer
79 adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet
80 dolore magna aliquam erat volutpat.
81
82 Ut wisi enim ad minim
83 veniam \hrefdisplayonly{\#target}{hidden link to target} quis nostrud
84 exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea
85 commodo consequat.
86
87 Duis autem vel eum iriure dolor \href{\#target}{link to target} in
88 hendrerit in vulputate velit esse molestie consequat, vel illum dolore
89 eu feugiat nulla facilisis at vero eros et accumsan et iusto odio
90 dignissim qui blandit praesent luptatum zzril delenit augue
91 duis dolore te feugait nulla facilisi.
92
93 \noindent \textbf{\textsf{%
94 \hrefdisplayonly{\#RefA}{A}
95 \hrefdisplayonly{\#RefB}{B}
96 \hrefdisplayonly{\#RefC}{C}
97 \hrefdisplayonly{\#RefD}{D}
98 \hrefdisplayonly{\#RefE}{E}
99 \hrefdisplayonly{\#RefF}{F}
100 \hrefdisplayonly{\#RefG}{G}
101 \hrefdisplayonly{\#RefH}{H}
102 \hrefdisplayonly{\#RefI}{I}
103 \hrefdisplayonly{\#RefJ}{J}
104 \hrefdisplayonly{\#RefK}{K}
105 \hrefdisplayonly{\#RefL}{L}
106 \hrefdisplayonly{\#RefM}{M}
107 \hrefdisplayonly{\#RefN}{N}
108 \hrefdisplayonly{\#RefO}{O}
109 \hrefdisplayonly{\#RefP}{P}
110 \hrefdisplayonly{\#RefQ}{Q}
111 \hrefdisplayonly{\#RefR}{R}
112 \hrefdisplayonly{\#RefS}{S}
113 \hrefdisplayonly{\#RefT}{T}
114 \hrefdisplayonly{\#RefU}{U}
115 \hrefdisplayonly{\#RefV}{V}
116 \hrefdisplayonly{\#RefW}{W}
117 \hrefdisplayonly{\#RefX}{X}
118 \hrefdisplayonly{\#RefY}{Y}
119 \hrefdisplayonly{\#RefZ}{Z}}}\linebreak
120
121 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,
122 vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida
123 mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
124
125 Switching to colored links with \verb|\hycon|:\newline
126 \hycon%
127 \href{\#RefX}{section X} and also
128 \href{https://ctan.org/pkg/hrefhide}{https://ctan.org/pkg/hrefhide}.
129
130 Switching off the colored links with \verb|\hycoff| again:\newline
131 \hycoff%
132 \href{\#RefX}{section X} and also
133 \href{https://ctan.org/pkg/hrefhide}{https://ctan.org/pkg/hrefhide}.
134 \pagebreak
135
136 {\Large \textbf{Targets}}\newline
137 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
138 nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
139 volutpat. \hypertarget{target}{target text} Ut wisi enim ad minim
140 veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
141 nisl ut aliquip ex ea commodo consequat.
142
143 \section[A]{\hypertarget{RefA}{A}} \lipsum[1]
144 \section[B]{\hypertarget{RefB}{B}} \lipsum[1]
145 \section[C]{\hypertarget{RefC}{C}} \lipsum[1]
146 \section[D]{\hypertarget{RefD}{D}} \lipsum[1]
147 \section[E]{\hypertarget{RefE}{E}} \lipsum[1]
148 \section[F]{\hypertarget{RefF}{F}} \lipsum[1]
149 \section[G]{\hypertarget{RefG}{G}} \lipsum[1]
150 \section[H]{\hypertarget{RefH}{H}} \lipsum[1]
151 \section[I]{\hypertarget{RefI}{I}} \lipsum[1]
152 \section[J]{\hypertarget{RefJ}{J}} \lipsum[1]
153 \section[K]{\hypertarget{RefK}{K}} \lipsum[1]
154 \section[L]{\hypertarget{RefL}{L}} \lipsum[1]
155 \section[M]{\hypertarget{RefM}{M}} \lipsum[1]
156 \section[N]{\hypertarget{RefN}{N}} \lipsum[1]
157 \section[O]{\hypertarget{RefO}{O}} \lipsum[1]
158 \section[P]{\hypertarget{RefP}{P}} \lipsum[1]
159 \section[Q]{\hypertarget{RefQ}{Q}} \lipsum[1]
160 \section[R]{\hypertarget{RefR}{R}} \lipsum[1]
161 \section[S]{\hypertarget{RefS}{S}} \lipsum[1]
162 \section[T]{\hypertarget{RefT}{T}} \lipsum[1]
163 \section[U]{\hypertarget{RefU}{U}} \lipsum[1]
164 \section[V]{\hypertarget{RefV}{V}} \lipsum[1]
165 \section[W]{\hypertarget{RefW}{W}} \lipsum[1]
166 \section[X]{\hypertarget{RefX}{X}} \lipsum[1]
167 \section[Y]{\hypertarget{RefY}{Y}} \lipsum[1]
168 \section[Z]{\hypertarget{RefZ}{Z}} \lipsum[1]
169 \end{document}
170 \endinput
171 %%
172 %% End of file `hrefhide-example.tex'.