| 1 |
%% |
| 2 |
%% This is file `hypertex.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% hyperref.dtx (with options: `hypertex') |
| 8 |
%% |
| 9 |
%% Copyright |
| 10 |
%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek |
| 11 |
%% 2001-2015 Heiko Oberdiek |
| 12 |
%% 2016-2019 Oberdiek Package Support Group |
| 13 |
%% 2019-2026 LaTeX Project |
| 14 |
%% https://github.com/latex3/hyperref/issues |
| 15 |
%% |
| 16 |
%% This file is part of the `Hyperref Bundle'. |
| 17 |
%% ------------------------------------------- |
| 18 |
%% |
| 19 |
%% This work may be distributed and/or modified under the |
| 20 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 21 |
%% of this license or (at your option) any later version. |
| 22 |
%% The latest version of this license is in |
| 23 |
%% http://www.latex-project.org/lppl.txt |
| 24 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 25 |
%% version 2005/12/01 or later. |
| 26 |
%% |
| 27 |
%% This work has the LPPL maintenance status `maintained'. |
| 28 |
%% |
| 29 |
%% The Current Maintainer of this work is the LaTeX Project. |
| 30 |
%% |
| 31 |
%% The list of all files belonging to the `Hyperref Bundle' is |
| 32 |
%% given in the file `manifest.txt'. |
| 33 |
%% |
| 34 |
%% File: hyperref.dtx |
| 35 |
\ProvidesFile{hypertex.def} |
| 36 |
[2026-04-24 v7.01q % |
| 37 |
Hyperref driver for HyperTeX specials] |
| 38 |
\Hy@VersionCheck{hypertex.def} |
| 39 |
\providecommand*{\XR@ext}{dvi} |
| 40 |
\let\PDF@FinishDoc\@empty |
| 41 |
\def\PDF@SetupDoc{% |
| 42 |
\ifx\@baseurl\@empty |
| 43 |
\else |
| 44 |
\special{html:<base href="\@baseurl">}% |
| 45 |
\fi |
| 46 |
} |
| 47 |
\Hy@WrapperDef\hyper@anchor#1{% |
| 48 |
\Hy@SaveLastskip |
| 49 |
\Hy@VerboseAnchor{#1}% |
| 50 |
\begingroup |
| 51 |
\let\protect=\string |
| 52 |
\hyper@chars |
| 53 |
\special{html:<a name=% |
| 54 |
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}% |
| 55 |
\endgroup |
| 56 |
\Hy@activeanchortrue |
| 57 |
\Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink |
| 58 |
\special{html:</a>}% |
| 59 |
\Hy@activeanchorfalse |
| 60 |
\Hy@RestoreLastskip |
| 61 |
} |
| 62 |
\Hy@WrapperDef\hyper@anchorstart#1{% |
| 63 |
\Hy@SaveLastskip |
| 64 |
\Hy@VerboseAnchor{#1}% |
| 65 |
\begingroup |
| 66 |
\hyper@chars |
| 67 |
\special{html:<a name=% |
| 68 |
\hyper@quote\HyperDestNameFilter{#1}\hyper@quote>}% |
| 69 |
\endgroup |
| 70 |
\Hy@activeanchortrue |
| 71 |
} |
| 72 |
\def\hyper@anchorend{% |
| 73 |
\special{html:</a>}% |
| 74 |
\Hy@activeanchorfalse |
| 75 |
\Hy@RestoreLastskip |
| 76 |
} |
| 77 |
\def\@urltype{url} |
| 78 |
\def\hyper@linkstart#1#2{% |
| 79 |
\Hy@VerboseLinkStart{#1}{#2}% |
| 80 |
\expandafter\Hy@colorlink\csname @#1color\endcsname |
| 81 |
\def\Hy@tempa{#1}% |
| 82 |
\ifx\Hy@tempa\@urltype |
| 83 |
\special{html:<a href=\hyper@quote#2\hyper@quote>}% |
| 84 |
\else |
| 85 |
\begingroup |
| 86 |
\hyper@chars |
| 87 |
\special{html:<a href=% |
| 88 |
\hyper@quote\#\HyperDestNameFilter{#2}\hyper@quote>}% |
| 89 |
\endgroup |
| 90 |
\fi |
| 91 |
} |
| 92 |
\def\hyper@linkend{% |
| 93 |
\special{html:</a>}% |
| 94 |
\Hy@endcolorlink |
| 95 |
} |
| 96 |
\def\hyper@linkfile#1#2#3{% |
| 97 |
\hyper@linkurl{#1}{\Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi}% |
| 98 |
} |
| 99 |
\def\hyper@linkurl#1#2{% |
| 100 |
\leavevmode |
| 101 |
\ifHy@raiselinks |
| 102 |
\Hy@SaveSpaceFactor |
| 103 |
\Hy@SaveSavedSpaceFactor |
| 104 |
\sbox\@tempboxa{\Hy@RestoreSpaceFactor#1}% |
| 105 |
\Hy@RestoreSavedSpaceFactor |
| 106 |
\@linkdim\dp\@tempboxa |
| 107 |
\lower\@linkdim\hbox{% |
| 108 |
\hyper@chars |
| 109 |
\special{html:<a href=\hyper@quote#2\hyper@quote>}% |
| 110 |
}% |
| 111 |
\Hy@colorlink\@urlcolor |
| 112 |
\Hy@RestoreSpaceFactor |
| 113 |
#1% |
| 114 |
\Hy@SaveSpaceFactor |
| 115 |
\@linkdim\ht\@tempboxa |
| 116 |
\advance\@linkdim by -6.5\p@ |
| 117 |
\raise\@linkdim\hbox{\special{html:</a>}}% |
| 118 |
\Hy@endcolorlink |
| 119 |
\Hy@RestoreSpaceFactor |
| 120 |
\else |
| 121 |
\begingroup |
| 122 |
\hyper@chars |
| 123 |
\special{html:<a href=\hyper@quote#2\hyper@quote>}% |
| 124 |
\Hy@colorlink\@urlcolor#1\Hy@xspace@end |
| 125 |
\special{html:</a>}% |
| 126 |
\Hy@endcolorlink |
| 127 |
\endgroup |
| 128 |
\fi |
| 129 |
} |
| 130 |
\def\hyper@link#1#2#3{% |
| 131 |
\Hy@VerboseLinkStart{#1}{#2}% |
| 132 |
\hyper@linkurl{#3}{\#\HyperDestNameFilter{#2}}% |
| 133 |
} |
| 134 |
\def\hyper@image#1#2{% |
| 135 |
\begingroup |
| 136 |
\hyper@chars |
| 137 |
\special{html:<img src=\hyper@quote#1\hyper@quote>}% |
| 138 |
\endgroup |
| 139 |
} |
| 140 |
\def\@Form[#1]{% |
| 141 |
\Hy@Message{Sorry, HyperTeX does not support FORMs}% |
| 142 |
} |
| 143 |
\let\@endForm\@empty |
| 144 |
\def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum |
| 145 |
\Hy@Message{Sorry, HyperTeX does not support FORM gauges}% |
| 146 |
} |
| 147 |
\def\@TextField[#1]#2{% parameters, label |
| 148 |
\Hy@Message{Sorry, HyperTeX does not support FORM text fields}% |
| 149 |
} |
| 150 |
\def\@CheckBox[#1]#2{% parameters, label |
| 151 |
\Hy@Message{Sorry, HyperTeX does not support FORM checkboxes}% |
| 152 |
} |
| 153 |
\def\@ChoiceMenu[#1]#2#3{% parameters, label, choices |
| 154 |
\Hy@Message{Sorry, HyperTeX does not support FORM choice menus}% |
| 155 |
} |
| 156 |
\def\@PushButton[#1]#2{% parameters, label |
| 157 |
\Hy@Message{Sorry, HyperTeX does not support FORM pushbuttons}% |
| 158 |
} |
| 159 |
\def\@Reset[#1]#2{% |
| 160 |
\Hy@Message{Sorry, HyperTeX does not support FORMs}% |
| 161 |
} |
| 162 |
\def\@Submit[#1]#2{% |
| 163 |
\Hy@Message{Sorry, HyperTeX does not support FORMs}% |
| 164 |
} |
| 165 |
\newlength\Hy@SectionHShift |
| 166 |
\def\Hy@SectionAnchorHref#1{% |
| 167 |
\ifx\protect\@typeset@protect |
| 168 |
\Hy@@SectionAnchor{#1}% |
| 169 |
\fi |
| 170 |
} |
| 171 |
\DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{% |
| 172 |
\leavevmode |
| 173 |
\hbox to 0pt{% |
| 174 |
\kern-\Hy@SectionHShift |
| 175 |
\Hy@raisedlink{% |
| 176 |
\hyper@anchorstart{#1}\hyper@anchorend |
| 177 |
}% |
| 178 |
\hss |
| 179 |
}% |
| 180 |
} |
| 181 |
\AddToNoCaseChangeList{\Hy@@SectionAnchor} |
| 182 |
\@ifundefined{hyper@nopatch@sectioning} |
| 183 |
{ |
| 184 |
\let\H@old@ssect\@ssect |
| 185 |
\def\@ssect#1#2#3#4#5{% |
| 186 |
\Hy@MakeCurrentHrefAuto{section*}% |
| 187 |
\setlength{\Hy@SectionHShift}{#1}% |
| 188 |
\begingroup |
| 189 |
\toks@{\H@old@ssect{#1}{#2}{#3}{#4}}% |
| 190 |
\toks\tw@\expandafter{% |
| 191 |
\expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% |
| 192 |
#5% |
| 193 |
}% |
| 194 |
\edef\x{\endgroup |
| 195 |
\the\toks@{\the\toks\tw@}% |
| 196 |
}\x |
| 197 |
} |
| 198 |
\let\H@old@schapter\@schapter |
| 199 |
\def\@schapter#1{% |
| 200 |
\begingroup |
| 201 |
\let\@mkboth\@gobbletwo |
| 202 |
\Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% |
| 203 |
\Hy@raisedlink{% |
| 204 |
\hyper@anchorstart{\@currentHref}\hyper@anchorend |
| 205 |
}% |
| 206 |
\endgroup |
| 207 |
\H@old@schapter{#1}% |
| 208 |
} |
| 209 |
\@ifundefined{@chapter}{}{% |
| 210 |
\let\Hy@org@chapter\@chapter |
| 211 |
\def\@chapter{% |
| 212 |
\def\Hy@next{% |
| 213 |
\Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% |
| 214 |
\Hy@raisedlink{% |
| 215 |
\hyper@anchorstart{\@currentHref}\hyper@anchorend |
| 216 |
}% |
| 217 |
}% |
| 218 |
\ifnum\c@secnumdepth>\m@ne |
| 219 |
\@ifundefined{if@mainmatter}% |
| 220 |
\iftrue{\csname if@mainmatter\endcsname}% |
| 221 |
\let\Hy@next\relax |
| 222 |
\fi |
| 223 |
\fi |
| 224 |
\Hy@next |
| 225 |
\Hy@org@chapter |
| 226 |
}% |
| 227 |
} |
| 228 |
\let\H@old@part\@part |
| 229 |
\@ifundefined{chapter} |
| 230 |
{\let\Hy@secnum@part\z@} |
| 231 |
{\let\Hy@secnum@part\m@ne} |
| 232 |
\def\@part{% |
| 233 |
\ifnum\Hy@secnum@part>\c@secnumdepth |
| 234 |
\phantomsection |
| 235 |
\fi |
| 236 |
\H@old@part |
| 237 |
} |
| 238 |
\let\H@old@spart\@spart |
| 239 |
\def\@spart#1{% |
| 240 |
\Hy@MakeCurrentHrefAuto{part*}% |
| 241 |
\Hy@raisedlink{% |
| 242 |
\hyper@anchorstart{\@currentHref}\hyper@anchorend |
| 243 |
}% |
| 244 |
\H@old@spart{#1}% |
| 245 |
} |
| 246 |
\let\H@old@sect\@sect |
| 247 |
\def\@sect#1#2#3#4#5#6[#7]#8{% |
| 248 |
\ifnum #2>\c@secnumdepth |
| 249 |
\expandafter\@firstoftwo |
| 250 |
\else |
| 251 |
\expandafter\@secondoftwo |
| 252 |
\fi |
| 253 |
{% |
| 254 |
\Hy@MakeCurrentHrefAuto{section*}% |
| 255 |
\setlength{\Hy@SectionHShift}{#3}% |
| 256 |
\begingroup |
| 257 |
\toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}% |
| 258 |
\toks\tw@\expandafter{% |
| 259 |
\expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% |
| 260 |
#8% |
| 261 |
}% |
| 262 |
\edef\x{\endgroup |
| 263 |
\the\toks@{\the\toks\tw@}% |
| 264 |
}\x |
| 265 |
}{% |
| 266 |
\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% |
| 267 |
}% |
| 268 |
} |
| 269 |
}{} |
| 270 |
\endinput |
| 271 |
%% |
| 272 |
%% End of file `hypertex.def'. |