%% %% This is file `hrefhide-example.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% hrefhide.dtx (with options: `example') %% %% This is a generated file. %% %% Project: hrefhide %% Version: 2011/04/29 v1.0f %% %% Copyright (C) 2010, 2011 by %% H.-Martin M"unch %% %% The usual disclaimer applys: %% If it doesn't work right that's your problem. %% (Nevertheless, send an e-mail to the maintainer %% when you find an error in this package.) %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either %% version 1.3c of this license or (at your option) any later %% version. This version of this license is in %% http://www.latex-project.org/lppl/lppl-1-3c.txt %% and the latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3c or later is part of all distributions of %% LaTeX version 2005/12/01 or later. %% %% This work has the LPPL maintenance status "maintained". %% %% The Current Maintainer of this work is H.-Martin Muench. %% %% This work consists of the main source file hrefhide.dtx %% and the derived files %% hrefhide.sty, hrefhide.pdf, hrefhide.ins, hrefhide.drv, %% hrefhide-example.tex. %% \documentclass[british]{article}[2007/10/19]% v1.4h %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{lipsum}[2011/04/14]% v1.2 \usepackage[ocgcolorlinks,bookmarks=false,bookmarksopen=false]{hyperref}[2011/04/17]% v6.82g \hypersetup{extension=pdf,% plainpages=false,% pdfpagelabels=true,% hyperindex=false,% pdflang={en},% pdftitle={hrefhide package example},% pdfauthor={Hans-Martin Muench},% pdfsubject={Example for the hrefhide package},% pdfkeywords={LaTeX, hrefhide, Hans-Martin Muench},% pdfview=Fit,pdfstartview=Fit,% pdfpagelayout=SinglePage% } \usepackage[linktextcolour=black,backgroundcolour=white,pdfborder={0 0 1}]{hrefhide}[2011/04/29]% v1.0f \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \listfiles \begin{document} \pagenumbering{arabic} \section*{Example for hrefhide} This example demonstrates the use of package\newline \textsf{hrefhide}, v1.0f as of 2011/04/29 (HMM).\newline The used options were \texttt{linktextcolour=black}, \texttt{backgroundcolour=white}, and \texttt{pdfborder={0 0 1}} (the default ones).\newline For more details please see the documentation!\newline \textit{Print-\textbf{preview} the first page of this document and compare it with the page as displayed in your pdf reader.}\newline \noindent {\color{green} Save per page about $200\unit{ml}$ water, $2\unit{g}$ CO$_{2}$ and $2\unit{g}$ wood:\newline Therefore please print only if this is really necessary.\newline Maybe already the print-preview or just printing the first page are sufficient?}\newline \bigskip Lorem ipsum dolor sit amet \href{\#target}{link to target} consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam \hrefdisplayonly{\#target}{hidden link to target} quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor \href{\#target}{link to target} in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.\newline \noindent \textbf{\textsf{% \hrefdisplayonly{\#RefA}{A} \hrefdisplayonly{\#RefB}{B} \hrefdisplayonly{\#RefC}{C} \hrefdisplayonly{\#RefD}{D} \hrefdisplayonly{\#RefE}{E} \hrefdisplayonly{\#RefF}{F} \hrefdisplayonly{\#RefG}{G} \hrefdisplayonly{\#RefH}{H} \hrefdisplayonly{\#RefI}{I} \hrefdisplayonly{\#RefJ}{J} \hrefdisplayonly{\#RefK}{K} \hrefdisplayonly{\#RefL}{L} \hrefdisplayonly{\#RefM}{M} \hrefdisplayonly{\#RefN}{N} \hrefdisplayonly{\#RefO}{O} \hrefdisplayonly{\#RefP}{P} \hrefdisplayonly{\#RefQ}{Q} \hrefdisplayonly{\#RefR}{R} \hrefdisplayonly{\#RefS}{S} \hrefdisplayonly{\#RefT}{T} \hrefdisplayonly{\#RefU}{U} \hrefdisplayonly{\#RefV}{V} \hrefdisplayonly{\#RefW}{W} \hrefdisplayonly{\#RefX}{X} \hrefdisplayonly{\#RefY}{Y} \hrefdisplayonly{\#RefZ}{Z}}} \linebreak Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.\newline Switching to coloured links with \verb|\hycon|:\newline \hycon \href{\#RefX}{X} and also \href{http://www.ctan.org/pkg/hrefhide}{http://www.ctan.org/pkg/hrefhide}. Switching off the coloured links with \verb|\hycoff| again:\newline \hycoff \href{\#RefY}{Y} and also \href{http://www.ctan.org/tex-archive/macros/latex/contrib/hrefhide}{% http://www.ctan.org/tex-archive/macros/latex/contrib/hrefhide}. \pagebreak {\Large \textbf{Targets}}\\ Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. \hypertarget{target}{target text} Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. \section[A]{\hypertarget{RefA}{A}} \lipsum[1] \section[B]{\hypertarget{RefB}{B}} \lipsum[1] \section[C]{\hypertarget{RefC}{C}} \lipsum[1] \section[D]{\hypertarget{RefD}{D}} \lipsum[1] \section[E]{\hypertarget{RefE}{E}} \lipsum[1] \section[F]{\hypertarget{RefF}{F}} \lipsum[1] \section[G]{\hypertarget{RefG}{G}} \lipsum[1] \section[H]{\hypertarget{RefH}{H}} \lipsum[1] \section[I]{\hypertarget{RefI}{I}} \lipsum[1] \section[J]{\hypertarget{RefJ}{J}} \lipsum[1] \section[K]{\hypertarget{RefK}{K}} \lipsum[1] \section[L]{\hypertarget{RefL}{L}} \lipsum[1] \section[M]{\hypertarget{RefM}{M}} \lipsum[1] \section[N]{\hypertarget{RefN}{N}} \lipsum[1] \section[O]{\hypertarget{RefO}{O}} \lipsum[1] \section[P]{\hypertarget{RefP}{P}} \lipsum[1] \section[Q]{\hypertarget{RefQ}{Q}} \lipsum[1] \section[R]{\hypertarget{RefR}{R}} \lipsum[1] \section[S]{\hypertarget{RefS}{S}} \lipsum[1] \section[T]{\hypertarget{RefT}{T}} \lipsum[1] \section[U]{\hypertarget{RefU}{U}} \lipsum[1] \section[V]{\hypertarget{RefV}{V}} \lipsum[1] \section[W]{\hypertarget{RefW}{W}} \lipsum[1] \section[X]{\hypertarget{RefX}{X}} \lipsum[1] \section[Y]{\hypertarget{RefY}{Y}} \lipsum[1] \section[Z]{\hypertarget{RefZ}{Z}} \lipsum[1] \end{document} \endinput %% %% End of file `hrefhide-example.tex'.