| 1 |
% $Id: nolink-example.tex 831 2020-06-04 18:07:54Z karl $ |
| 2 |
% Public domain. |
| 3 |
|
| 4 |
\documentclass[a4paper]{article} |
| 5 |
\usepackage{fancyhdr} |
| 6 |
\pagestyle{fancy} |
| 7 |
%\cfoot{some footline text that should not be linked} |
| 8 |
%\usepackage{ifxetex} |
| 9 |
%\ifxetex |
| 10 |
\cfoot{\special{pdf:nolink}some footline text that should not be |
| 11 |
linked but is unless xetex\special{pdf:link}} |
| 12 |
%\fi |
| 13 |
\usepackage{hyperref} |
| 14 |
|
| 15 |
\begin{document} |
| 16 |
\vspace*{48\baselineskip} |
| 17 |
xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx |
| 18 |
\href{xxxxx}{link link link link } |
| 19 |
\end{document} |
| 20 |
|
| 21 |
% https://tug.org/pipermail/tex-live/2018-November/042759.html |
| 22 |
% Date: Wed, 28 Nov 2018 12:31:25 +0100 |
| 23 |
% From: Ulrike Fischer <[email protected]> |
| 24 |
% To: [email protected] |
| 25 |
% Subject: [tex-live] pdfstartlink/pdfendlink and boxing level problems |
| 26 |
% |
| 27 |
% [see ../15-startlink-boxing/*.tex for other request.] |
| 28 |
% |
| 29 |
% 2. The engines interrupts linking if the boxing level of |
| 30 |
% intermediate text is less than the boxing level at the start of the |
| 31 |
% link: |
| 32 |
% |
| 33 |
% [example program above] |
| 34 |
% |
| 35 |
% This allows to some extend to exclude e.g. header and footer from |
| 36 |
% link areas. But doesn't work e.g. with fancyhdr which adds an |
| 37 |
% additional box level to the footer. xetex/xdvidfpmx has here a quite |
| 38 |
% useful special \special{pdf:nolink} which can be used to suppress |
| 39 |
% the unwanted link area: |
| 40 |
% |
| 41 |
% \documentclass[a4paper]{article} |
| 42 |
% \usepackage{fancyhdr} |
| 43 |
% \pagestyle{fancy} |
| 44 |
% \cfoot{some longer text that should not be linked} |
| 45 |
% \usepackage{ifxetex} |
| 46 |
% \ifxetex |
| 47 |
% %\cfoot{\special{pdf:nolink}some longer text that should not be |
| 48 |
% linked\special{pdf:link}} |
| 49 |
% \fi |
| 50 |
% \usepackage{hyperref} |
| 51 |
% |
| 52 |
% \begin{document} |
| 53 |
% \vspace*{48\baselineskip} |
| 54 |
% xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx |
| 55 |
% \href{xxxxx}{link link link link } |
| 56 |
% \end{document} |
| 57 |
% |
| 58 |
% Would it be possible to add to pdftex/luatex something similar? |