2 %% This is file `htex4ht.def',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% hyperref.dtx (with options: `tex4ht')
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{htex4ht.def}
27 Hyperref driver for TeX4ht]
28 \@ifpackageloaded{tex4ht}
29 {\typeout{hyperref tex4ht: tex4ht already loaded}}%
30 {\RequirePackage[htex4ht]{tex4ht}}
33 \ifx\@baseurl\@empty\else
34 \special{t4ht=<base href="\@baseurl">}%
41 \special{t4ht=<a name=\hyper@quote #1\hyper@quote>}%
44 \Hy@colorlink{\@anchorcolor}\anchor@spot\Hy@endcolorlink
49 \def\hyper@anchorstart#1{%
52 \hyper@chars\special{t4ht=<a name=\hyper@quote#1\hyper@quote>}%
56 \def\hyper@anchorend{%
62 \def\hyper@linkstart#1#2{%
63 \Hy@colorlink{\csname @#1color\endcsname}%
65 \ifx\Hy@tempa\@urltype
66 \special{t4ht=<a href=\hyper@quote#2\hyper@quote>}%
68 {\hyper@chars\special{t4ht=<a href=\hyper@quote\##2\hyper@quote>}}%
75 \def\hyper@linkfile#1#2#3{%
76 \hyper@linkurl{#1}{file:#2\ifx\\#3\\\else\##3\fi}%
78 \def\hyper@linkurl#1#2{%
81 \setbox\@tempboxa=\color@hbox #1\color@endbox
82 \@linkdim\dp\@tempboxa
83 \lower\@linkdim\hbox{%
85 \hyper@chars\special{t4ht=<a href=\hyper@quote#2\hyper@quote>}%
88 \Hy@colorlink{\@urlcolor}#1\Hy@endcolorlink
89 \@linkdim\ht\@tempboxa
90 \advance\@linkdim by -6.5\p@
91 \raise\@linkdim\hbox{\special{t4ht=</a>}}%
95 \special{t4ht=<a href=\hyper@quote#2\hyper@quote>}%
96 \Hy@colorlink{\@urlcolor}#1\Hy@endcolorlink
101 \def\hyper@link#1#2#3{%
102 \hyper@linkurl{#3}{\##2}%
104 \def\hyper@image#1#2{%
107 \special{t4ht=<img src=\hyper@quote#1\hyper@quote>}%
112 \def\rEfLiNK #1#2{#2}%
117 \HCode{<form action="\Form@action" method="\Form@method">}%
119 \def\@endForm{\HCode{</form>}}
120 \def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum
121 \typeout{Sorry, TeX4ht does not support gauges}%
123 \def\@TextField[#1]#2{% parameters, label
124 \let\Hy@reserved@a\@empty
130 \HCode{<label for="\Fld@name">#2</label>}%
138 \def\@@PasswordField{%
140 <input type="password"
143 \ifFld@hidden type="hidden"\fi
152 \ifFld@readonly readonly \fi
155 \ifFld@hidden type="hidden"\fi
161 \HCode{<input type="textbox"
162 \ifFld@readonly readonly \fi
165 \ifFld@hidden type="hidden"\fi
166 value="\Fld@default" \the\Field@toks>
170 \def\@ChoiceMenu[#1]#2#3{% parameters, label, choices
173 \let\Hy@reserved@a\relax
175 \expandafter\Fld@findlength#3\\%
180 \expandafter\@@Radio#3\\%
182 \expandafter\@@Menu#3\\%
186 \def\Fld@findlength#1\\{%
188 \@for\@curropt:=#1\do{\Hy@StepCount\Fld@menulength}%
191 \HCode{<select size="\the\Fld@menulength"
192 name="\Fld@name" \the\Field@toks>}%
193 \@for\@curropt:=#1\do{%
194 \expandafter\Fld@checkequals\@curropt==\\%
196 \ifx\@curropt\Fld@default selected \fi
197 value="\@currValue">\@currDisplay</option>%
203 \@for\@curropt:=#1\do{%
204 \expandafter\Fld@checkequals\@curropt==\\%
205 \HCode{<input type="radio"
206 \ifx\@curropt\Fld@default checked \fi
214 \def\@PushButton[#1]#2{% parameters, label
219 \HCode{<input type="button"
228 \HCode{<button type="submit">#2</button>}%
231 \HCode{<button type="reset">#2</button>}%
233 \def\@CheckBox[#1]#2{% parameters, label
234 \let\Hy@reserved@a\@empty
240 \HCode{<input type="checkbox"
241 \ifFld@checked checked \fi
242 \ifFld@disabled disabled \fi
243 \ifFld@readonly readonly \fi
245 \ifFld@hidden type="hidden"\fi
254 %% End of file `htex4ht.def'.