File: test1.tex

package info (click to toggle)
hyperref 6.10-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 500 kB
  • ctags: 129
  • sloc: makefile: 54; sh: 8
file content (310 lines) | stat: -rw-r--r-- 7,127 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
\documentclass[dvips,11pt]{book}
\makeatletter
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi
\chapter*{List of Figures}
{\let\\ \ \markboth{Title}{List of Figures}}
\addcontentsline{toc}{chapter}{\protect
 \numberline{LIST OF FIGURES\string\hss}}
\@starttoc{lof}\if@restonecol \twocolumn\fi}
\makeatother
\usepackage{epsfig,longtable}
\usepackage{makeidx}
\usepackage{varioref}
\usepackage{xr}
\usepackage{amsmath}
\RequirePackage[colorlinks,plainpages,pdfborder={/S /S /W 0}]{hyperref}
\def\boldindex#1{\textbf{\hyperpage{#1}}}
\makeindex
\makeatletter
\externaldocument{test2}[d:/out/test2]
\makeatother
\begin{document}
\pdfbookmark{Title}{tit}
\title{Testing Hyperref}
\author{Sebastian Rahtz}
\date{May 1997}
\setlongtables
\maketitle
\tableofcontents
%\listoffigures
\newcommand{\eqnref}[1]{{equation~$\ref{#1}$}}
\newtheorem{Argument}{Here we go}[section]
\def\thesubsection{\Roman{section} -- \arabic{subsection}}
\setcounter{tocdepth}{1}

\chapter[First part]{First part, leading to \protect\ref{horrid}  next}
\section[Test section]{Our \protect\LaTeX\ test section (leading to \ref{One})
 for 100\% of \AE horrid $X[Y]Z$ 
things, like $42$\label{horrid}}
and so see section \ref{horrid}.

\section{Section One --- cats}\label{One}
see section \vref{Three} about
cats\index{animals!cats} and cite 
\cite{Barcelo:1992:caa}
\subsection{one.1}

some text with a footnote\footnote{WISH UPON A STAR}
and another one with an extended 
footnote\footnote{\protect\label{foot}This is the way the world ends not with a
  bang but a whimper. This is the way the world ends not with a
  bang but a whimper. This is the way the world ends not with a
  bang but a whimper.}
and a reference to a long table\index{tables!long!longtables},
\ref{mylongtab}.

\subsection{one.2}
dogs

\href{file:test2#page.2}{See page  2 in file test2}, 
on page 3 of this file.

\href{file:test2.pdf#page.2}{See page 2 in file test2.pdf} 
on page 3 of this file.

{ And can we  see \ref{ss:first}}

in the file test2.pdf? alternatively,
\href{file:test2.pdf#subsection.1.2}{the link like this}

All Or this? \url{test2.pdf#section.1}

\newpage
\section{Section Two --- \TeX\ is a dog}
\subsection{two.1}
\subsection{two.2}
\newpage
cite \cite{Barcelo:1992:caa} again.

\chapter{Second part}
\section{Section Three --- Camels}\label{Three}
see section \ref{One}
\subsection{three.1}
 some text with a footnote\footnote{OVER THE RAINBOW}
\index{rainbows}
\subsection{three.2}

\newpage
\section[Section Four --- Butterflies]{Section Four --- Butterflies and so on}
\subsection{four.1}
\subsection{four.2}
camels
Refer to \hyperref{}{test}{test1}{with these words}
\newpage
\section{Introduction}\label{sec1}
\subsection{subsec}
\newpage
\subsection{subsec}\label{subsec1.2}
Define a marker \hyperdef{}{test}{test1}{here} while this one is a
PostScript picture acting as marker:
\index{PS pictures}
\hyperlink{testpiccy}{\epsfig{figure=picture,height=1in}}

This is a picture: \epsfig{figure=picture,height=1in}
\newpage
\section{two}\label{sec2}
\subsection{Subsection 2}
\subsection{Subsection 3}
\newpage
\section{three}
This is a reference to section 1 (\ref{sec1}), subsection 1.2 (\ref{subsec1.2})
and section 2 (\ref{sec2}). References to \cite{Barcelo:1992:caa,Dallas:aia}.

\begin{figure}

xxxx

\hypertarget{testpiccy}{Test picture}

xxxxx

xxxxx
\caption{{A cat}}
\label{fig1}
\end{figure}

\begin{figure}

xxxx

xxxxx
\caption{Another cat with a link inside it,
so see  \cite{Dallas:aia} xxxx \label{fig2}}
\end{figure}

\texttt{<<where is \eqnref{eq1}>>}

\section{Some URLs}

\begin{minipage}{1.5in}
\url{http://www.aw.com/cp/tlgc.html#Describe}

\url{http://nsi.net.kiae.su/latex/latex2e.html}

\url{http://www.lehigh.edu/~dlj0/LyriX.html}

\url{http://www.cs.wisc.edu/~ghost/index.html}

\url{http://www.win.tue.nl/win/math/dw/personalpages/dickie/idvi/}

\url{http://www.tug.org/interest.html#projects}

\url{ftp://ftp.cbr.dit.csiro.au/staff/gjw/www/tex.html}


This is a URL: \url{http://srahtz/attend.html#sebastian}

\hyperref{file:test2.pdf}{equation}{1}{hello}
\end{minipage}

\newpage

\section{Back to math}
\begin{equation}
  zzzz + b
  \label{eq1}
\end{equation}

and what next?

\begin{equation}
  d - e
  \label{eq2}
\end{equation}

\begin{eqnarray}
  y &=&z\\
  g &=&h\\
  \label{eq3}
\end{eqnarray}
We need some lists:
\begin{enumerate}
\item oranges\index{oranges|boldindex}
\item lemons\index{lemons|boldindex}
\item beer\index{beer|boldindex}
  \begin{enumerate}
  \item Samuel Smiths
  \item Labatts
  \end{enumerate}
\end{enumerate}

Lets look at labels in lists:
\begin{enumerate}
\item oranges\label{oranges}
\item lemons\label{lemons}
\item beer\label{beer}
  \begin{enumerate}
  \item Samuel Smiths\label{smiths}
  \item Labatts\label{labatts}
  \end{enumerate}
\end{enumerate}
\clearpage

from which see \ref{oranges}, \ref{lemons}, \ref{smiths} and
\ref{labatts}


see
sec1: \ref{sec1}
sec2: \ref{sec2}
eq1: \ref{eq1}
fig1: \ref{fig1}
and cite \cite{Barcelo:1992:caa} again.
\onecolumn
\begin{longtable}{lll}
\caption{A test long table}\label{mylongtab}\\
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
a & b & c \\a
\end{longtable}

Does \hyperref{}{equation}{2.2}{this} point to the second equation?

Does anything point to the eqnarray (\ref{eq3})?
\index{cats}

\begin{thebibliography}{99}
\bibitem{Barcelo:1992:caa}
{Barcel\'o, J.} 1992.
\newblock Programming an intelligent database in archaeology. In \emph{Computer
  Applications and Quantitative Methods in Archaeology 1991}, {Lock, G. \&
  J.~Moffett} (eds),   21--28, Oxford: British Archaeological Reports.

\bibitem[Dallas 1992]{Dallas:aia}
{Dallas, C.~J.} 1992.
\newblock Syntax and semantics of figurative art: a formal approach. In
  \emph{Archaeology and the Information Age}, {Reilly, P. \& S.~Rahtz} (eds),
  chapter~16, London: Routledge.

\bibitem[Stankovic 1988]{stankovic:88}
J.~Stankovic, ``Misconceptions about real-time computing: a serious problem for
  next-generation systems,'' {\em Computer}, vol.~21, no.~10, pp.~10--19, Oct.
  1988.

\end{thebibliography}
\clearpage
An index entry for gnus\index{gnus}
\clearpage
An index entry for gnus\index{gnus}
\clearpage
An index entry for gnus\index{gnus}
\clearpage
An index entry for gnus\index{gnus}
\clearpage
An index entry for gnus\index{gnus}
\clearpage
An index entry for gnus\index{gnus}
\chapter*{An appendix --- the Index}
\printindex
\end{document}