blob: 727451544739d9fb5b75cc3184609ff74881a71f (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
%
\special{papersize=10cm,10cm}
\special{pdf:out 1
<</Title(Contents)/A<</S/GoTo/D(contents)>>>>}
\special{pdf:out 1
<</Title(1 First section)/A<</S/GoTo/D(section.1)>>>>}
\special{pdf:out 2
<</Title(1.1 First subsection)/A<</S/GoTo/D(subsection.1.1)>>>>}
\special{pdf:out 1
<</Title(2 Second section)/A<</S/GoTo/D(section.2)>>>>}
\noindent Contents
\special{pdf:dest (contents) [@thispage /XYZ @xpos @ypos null]}
\vskip 5mm
\hbox to 60mm{%
\special{pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[1 0 0]
/A<</S/GoTo/D(section.1)>>>>}1 First section\special{pdf:eann}
\hfill 2}
\hbox to 60mm{\hskip 5mm%
\special{pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[1 0 0]
/A<</S/GoTo/D(subsection.1.1)>>>>}1.1 First subsection\special{pdf:eann}
\hfill 3}
\hbox to 60mm{%
\special{pdf:bann<</Type/Annot/Subtype/Link/Border[0 0 0]/C[1 0 0]
/A<</S/GoTo/D(section.2)>>>>}2 Second section\special{pdf:eann}
\hfill 4}
\vfill\break
\noindent 1 First section
\special{pdf:dest (section.1) [@thispage /XYZ @xpos @ypos null]}
\vskip 5mm
\noindent The first section
\vfill\break
\noindent 1.1 First subsection
\special{pdf:dest (subsection.1.1) [@thispage /XYZ @xpos @ypos null]}
\vskip 5mm
\noindent The first subsection
\vfill\break
\noindent 2 Second section
\special{pdf:dest (section.2) [@thispage /XYZ @xpos @ypos null]}
\vskip 5mm
\noindent The second section
\bye
|