Debian Codegraph @

texk/dviout-util/tests/flatnest.tex

raw
1 % flatten nested annotation
2 \documentclass[dvipdfmx]{article}
3 \usepackage[colorlinks=true]{hyperref}
4 \textwidth5cm
5 \makeatletter
6 \usepackage{etoolbox}
7 \patchcmd{\@makecol}{%
8 \color@begingroup
9 \normalcolor
10 \footnoterule
11 \unvbox \footins
12 \color@endgroup
13 }{%
14 \color@begingroup
15 \normalcolor
16 \special{pdf:nolink}%
17 \footnoterule
18 \unvbox \footins
19 \special{pdf:link}%
20 \color@endgroup
21 }{}{}
22 \makeatother
23
24 \begin{document}
25 A\footnote{CTAN web: \href{https://ctan.org/}{CTAN} here!}
26 \vspace*{41\baselineskip}
27
28 Text with link: \href{https://tug.org/}{TUG TUG TUG TUG
29 TUG TUG TUG TUG TUG TUG TUG TUG TUG TUG TUG TUG} all done!
30 \end{document}