summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviout-util/tests/flatnest.tex
blob: 7d42b38aaca494d1ad8f9e8475b6ef44fea39a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
% flatten nested annotation
\documentclass[dvipdfmx]{article}
\usepackage[colorlinks=true]{hyperref}
\textwidth5cm
\makeatletter
\usepackage{etoolbox}
\patchcmd{\@makecol}{%
       \color@begingroup
         \normalcolor
         \footnoterule
         \unvbox \footins
       \color@endgroup
}{%
       \color@begingroup
         \normalcolor
         \special{pdf:nolink}%
         \footnoterule
         \unvbox \footins
         \special{pdf:link}%
       \color@endgroup
}{}{}
\makeatother

\begin{document}
A\footnote{CTAN web: \href{https://ctan.org/}{CTAN} here!}
\vspace*{41\baselineskip}

Text with link: \href{https://tug.org/}{TUG TUG TUG TUG
TUG TUG TUG TUG TUG TUG TUG TUG TUG TUG TUG TUG} all done!
\end{document}