%% %% This is file `hypertex.def', %% generated with the docstrip utility. %% %% The original source files were: %% %% hyperref.dtx (with options: `hypertex') %% %% Copyright %% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek, %% 2001-2015 Heiko Oberdiek. %% 2016-2019 Oberdiek Package Support Group %% 2019-2022 LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. %% ------------------------------------------- %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% %% This work has the LPPL maintenance status `maintained'. %% %% The Current Maintainer of this work is the LaTeX Project. %% %% The list of all files belonging to the `Hyperref Bundle' is %% given in the file `manifest.txt'. %% %% File: hyperref.dtx \ProvidesFile{hypertex.def} [2022-06-20 v7.00s % Hyperref driver for HyperTeX specials] \Hy@VersionCheck{hypertex.def} \providecommand*{\XR@ext}{dvi} \let\PDF@FinishDoc\ltx@empty \def\PDF@SetupDoc{% \ifx\@baseurl\@empty \else \special{html:}% \fi } \Hy@WrapperDef\hyper@anchor#1{% \Hy@SaveLastskip \Hy@VerboseAnchor{#1}% \begingroup \let\protect=\string \hyper@chars \special{html:}% \endgroup \Hy@activeanchortrue \Hy@colorlink\@anchorcolor\anchor@spot\Hy@endcolorlink \special{html:}% \Hy@activeanchorfalse \Hy@RestoreLastskip } \Hy@WrapperDef\hyper@anchorstart#1{% \Hy@SaveLastskip \Hy@VerboseAnchor{#1}% \begingroup \hyper@chars \special{html:}% \endgroup \Hy@activeanchortrue } \def\hyper@anchorend{% \special{html:}% \Hy@activeanchorfalse \Hy@RestoreLastskip } \def\@urltype{url} \def\hyper@linkstart#1#2{% \Hy@VerboseLinkStart{#1}{#2}% \expandafter\Hy@colorlink\csname @#1color\endcsname \def\Hy@tempa{#1}% \ifx\Hy@tempa\@urltype \special{html:}% \else \begingroup \hyper@chars \special{html:}% \endgroup \fi } \def\hyper@linkend{% \special{html:}% \Hy@endcolorlink } \def\hyper@linkfile#1#2#3{% \hyper@linkurl{#1}{\Hy@linkfileprefix#2\ifx\\#3\\\else\##3\fi}% } \def\hyper@linkurl#1#2{% \leavevmode \ifHy@raiselinks \Hy@SaveSpaceFactor \Hy@SaveSavedSpaceFactor \sbox\@tempboxa{\Hy@RestoreSpaceFactor#1}% \Hy@RestoreSavedSpaceFactor \@linkdim\dp\@tempboxa \lower\@linkdim\hbox{% \hyper@chars \special{html:}% }% \Hy@colorlink\@urlcolor \Hy@RestoreSpaceFactor #1% \Hy@SaveSpaceFactor \@linkdim\ht\@tempboxa \advance\@linkdim by -6.5\p@ \raise\@linkdim\hbox{\special{html:}}% \Hy@endcolorlink \Hy@RestoreSpaceFactor \else \begingroup \hyper@chars \special{html:}% \Hy@colorlink\@urlcolor#1\Hy@xspace@end \special{html:}% \Hy@endcolorlink \endgroup \fi } \def\hyper@link#1#2#3{% \Hy@VerboseLinkStart{#1}{#2}% \hyper@linkurl{#3}{\#\HyperDestNameFilter{#2}}% } \def\hyper@image#1#2{% \begingroup \hyper@chars \special{html:}% \endgroup } \def\@Form[#1]{% \Hy@Message{Sorry, HyperTeX does not support FORMs}% } \let\@endForm\ltx@empty \def\@Gauge[#1]#2#3#4{% parameters, label, minimum, maximum \Hy@Message{Sorry, HyperTeX does not support FORM gauges}% } \def\@TextField[#1]#2{% parameters, label \Hy@Message{Sorry, HyperTeX does not support FORM text fields}% } \def\@CheckBox[#1]#2{% parameters, label \Hy@Message{Sorry, HyperTeX does not support FORM checkboxes}% } \def\@ChoiceMenu[#1]#2#3{% parameters, label, choices \Hy@Message{Sorry, HyperTeX does not support FORM choice menus}% } \def\@PushButton[#1]#2{% parameters, label \Hy@Message{Sorry, HyperTeX does not support FORM pushbuttons}% } \def\@Reset[#1]#2{% \Hy@Message{Sorry, HyperTeX does not support FORMs}% } \def\@Submit[#1]#2{% \Hy@Message{Sorry, HyperTeX does not support FORMs}% } \newlength\Hy@SectionHShift \def\Hy@SectionAnchorHref#1{% \ifx\protect\@typeset@protect \Hy@@SectionAnchor{#1}% \fi } \DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{% \leavevmode \hbox to 0pt{% \kern-\Hy@SectionHShift \Hy@raisedlink{% \hyper@anchorstart{#1}\hyper@anchorend }% \hss }% } \@ifundefined{hyper@nopatch@sectioning} { \let\H@old@ssect\@ssect \def\@ssect#1#2#3#4#5{% \Hy@MakeCurrentHrefAuto{section*}% \setlength{\Hy@SectionHShift}{#1}% \begingroup \toks@{\H@old@ssect{#1}{#2}{#3}{#4}}% \toks\tw@\expandafter{% \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% #5% }% \edef\x{\endgroup \the\toks@{\the\toks\tw@}% }\x } \let\H@old@schapter\@schapter \def\@schapter#1{% \begingroup \let\@mkboth\@gobbletwo \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% \endgroup \H@old@schapter{#1}% } \ltx@IfUndefined{@chapter}{}{% \let\Hy@org@chapter\@chapter \def\@chapter{% \def\Hy@next{% \Hy@MakeCurrentHrefAuto{\Hy@chapapp*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% }% \ifnum\c@secnumdepth>\m@ne \ltx@IfUndefined{if@mainmatter}% \iftrue{\csname if@mainmatter\endcsname}% \let\Hy@next\relax \fi \fi \Hy@next \Hy@org@chapter }% } \let\H@old@part\@part \@ifundefined{chapter} {\let\Hy@secnum@part\z@} {\let\Hy@secnum@part\m@ne} \def\@part{% \ifnum\Hy@secnum@part>\c@secnumdepth \phantomsection \fi \H@old@part } \let\H@old@spart\@spart \def\@spart#1{% \Hy@MakeCurrentHrefAuto{part*}% \Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend }% \H@old@spart{#1}% } \let\H@old@sect\@sect \def\@sect#1#2#3#4#5#6[#7]#8{% \ifnum #2>\c@secnumdepth \expandafter\@firstoftwo \else \expandafter\@secondoftwo \fi {% \Hy@MakeCurrentHrefAuto{section*}% \setlength{\Hy@SectionHShift}{#3}% \begingroup \toks@{\H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}% \toks\tw@\expandafter{% \expandafter\Hy@SectionAnchorHref\expandafter{\@currentHref}% #8% }% \edef\x{\endgroup \the\toks@{\the\toks\tw@}% }\x }{% \H@old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}% }% } }{} \endinput %% %% End of file `hypertex.def'.