2 %% This is file `hypertex.def',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% hyperref.dtx (with options: `hypertex')
9 %% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
10 %% RCS: $Id: hyperref.dtx 6.71 2000/10/04 rahtz Exp rahtz $
12 %% This file is part of the `Hyperref Bundle'.
13 %% -------------------------------------------
15 %% It may be distributed under the conditions of the LaTeX Project Public
16 %% License, either version 1.2 of this license or (at your option) any
17 %% later version. The latest version of this license is in
18 %% http://www.latex-project.org/lppl.txt
19 %% and version 1.2 or later is part of all distributions of LaTeX
20 %% version 1999/12/01 or later.
22 %% The list of all files belonging to the `Hyperref Bundle' is
23 %% given in the file `manifest.txt'.
25 \ProvidesFile{hypertex.def}
27 Hyperref driver for HyperTeX specials]
30 \ifx\@baseurl\@empty\else
31 \special{html:<base href="\@baseurl">}%
39 \special{html:<a name=\hyper@quote #1\hyper@quote>}%
42 \Hy@colorlink{\@anchorcolor}\anchor@spot\Hy@endcolorlink
47 \def\hyper@anchorstart#1{%
51 \special{html:<a name=\hyper@quote#1\hyper@quote>}%
55 \def\hyper@anchorend{%
61 \def\hyper@linkstart#1#2{%
62 \Hy@colorlink{\csname @#1color\endcsname}%
64 \ifx\Hy@tempa\@urltype
65 \special{html:<a href=\hyper@quote#2\hyper@quote>}%
69 \special{html:<a href=\hyper@quote\##2\hyper@quote>}%
77 \def\hyper@linkfile#1#2#3{%
78 \hyper@linkurl{#1}{file:#2\ifx\\#3\\\else\##3\fi}%
80 \def\hyper@linkurl#1#2{%
83 \setbox\@tempboxa=\color@hbox #1\color@endbox
84 \@linkdim\dp\@tempboxa
85 \lower\@linkdim\hbox{%
87 \special{html:<a href=\hyper@quote#2\hyper@quote>}%
89 \Hy@colorlink{\@urlcolor}#1%
90 \@linkdim\ht\@tempboxa
91 \advance\@linkdim by -6.5\p@
92 \raise\@linkdim\hbox{\special{html:</a>}}%
97 \special{html:<a href=\hyper@quote#2\hyper@quote>}%
98 \Hy@colorlink{\@urlcolor}#1%
104 \def\hyper@link#1#2#3{%
105 \hyper@linkurl{#3}{\##2}%
107 \def\hyper@image#1#2{%
110 \special{html:<img src=\hyper@quote#1\hyper@quote>}%
113 \def\@Form[#1]{\typeout{Sorry, HyperTeX does not support FORMs}}
115 \def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
116 \typeout{Sorry, HyperTeX does not support FORM gauges}%
118 \def\@TextField[#1]#2{% parameters, label
119 \typeout{Sorry, HyperTeX does not support FORM text fields}%
121 \def\@CheckBox[#1]#2{% parameters, label
122 \typeout{Sorry, HyperTeX does not support FORM checkboxes}%
124 \def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
125 \typeout{Sorry, HyperTeX does not support FORM choice menus}%
127 \def\@PushButton[#1]#2{% parameters, label
128 \typeout{Sorry, HyperTeX does not support FORM pushbuttons}%
130 \def\@Reset[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
131 \def\@Submit[#1]#2{\typeout{Sorry, HyperTeX does not support FORMs}}
132 \let\H@old@ssect\@ssect
133 \def\@ssect#1#2#3#4#5{%
134 \H@old@ssect{#1}{#2}{#3}{#4}{#5}%
137 \let\H@old@schapter\@schapter
141 \let\@mkboth\@gobbletwo
142 \Hy@GlobalStepCount\Hy@linkcounter
143 \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
144 \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
147 \@ifundefined{@chapter}{}{%
148 \let\Hy@org@chapter\@chapter
151 \Hy@GlobalStepCount\Hy@linkcounter
152 \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
153 \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
155 \ifnum\c@secnumdepth>\m@ne
156 \@ifundefined{if@mainmatter}%
157 \iftrue{\csname if@mainmatter\endcsname}
165 \let\H@old@spart\@spart
168 \Hy@GlobalStepCount\Hy@linkcounter
169 \xdef\@currentHref{part*.\the\Hy@linkcounter}%
170 \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
172 \let\H@old@sect\@sect
173 \def\@sect#1#2#3#4#5#6[#7]#8{%
174 \ifnum #2>\c@secnumdepth
175 \Hy@GlobalStepCount\Hy@linkcounter
176 \xdef\@currentHref{section*.\the\Hy@linkcounter}%
178 \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
179 \ifnum #2>\c@secnumdepth
180 \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
184 \def\@addchap[##1]##2{%
191 \addtocontents{lof}{\protect\addvspace{10\p@}}%
192 \addtocontents{lot}{\protect\addvspace{10\p@}}%
193 \Hy@GlobalStepCount\Hy@linkcounter
194 \xdef\@currentHref{\Hy@chapapp*.\the\Hy@linkcounter}%
195 \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
197 \@topnewpage[\@makeschapterhead{##2}]%
199 \@makeschapterhead{##2}%
202 \addcontentsline{toc}{chapter}{##1}%
205 \@ifclassloaded{scrbook}{%
206 \@ifclasslater{scrbook}{2001/01/01}{%
210 \@ifclassloaded{scrreprt}{%
211 \@ifclasslater{scrreprt}{2001/01/01}{%
221 %% End of file `hypertex.def'.