IDVI User's Guide

Back to the table of contents.

Including Links in Your Documents

IDVI supports the HyperTeX extensions to TeX. This means that you can use the <a name=...> and <a href=...> tags within your document, by including them as specials (with the prefix html:) in your TeX source:
\special{html:<a href=http://www.win.tue.nl/>}
Technical University of Eindhoven
\special{html:</a>}
IDVI also supports the target= parameter to the <a href=...> special, in the same manner as Netscape. Thus to create a link which opens the TUE home page in a new blank window, you would use:
\special{html:<a href=http://www.win.tue.nl/ target=_blank>}
Technical University of Eindhoven
\special{html:</a>}

Several packages are available which will automatically create links in your document. For example, if you are using LaTeX2e (your TeX file starts with \documentclass rather than \documentstyle), and your site has installed the hyperref package, then you just need to add

\usepackage{hyperref}
to the beginning of your document, after the line containing \documentclass. This will automatically create links from each \ref to the corresponding \label, and will also define macros \href and \name.

The following definitions may be useful if you are not using a package:

\define\htmlspecial#1{\special{html:<#1>}}
\define\href#1#2{\htmlspecial{a href="#1"}#2\htmlspecial{/a}}
\define\name#1#2{\htmlspecial{a name="#1"}#2\htmlspecial{/a}}
Back to the table of contents.