summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht365
1 files changed, 365 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht b/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
new file mode 100644
index 00000000000..797b15589ae
--- /dev/null
+++ b/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht
@@ -0,0 +1,365 @@
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% hyperref.4ht 2005-10-23-04:19 %
+% Copyright (C) 1999--2005 Eitan M. Gurari %
+% %
+% 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 2003/12/01 or later. %
+% %
+% This work has the LPPL maintenance status "maintained".%
+% %
+% This Current Maintainer of this work %
+% is Eitan M. Gurari. %
+% %
+% If you modify this program your changing its signature %
+% with a directive of the following form will be %
+% appreciated. %
+% \message{signature} %
+% %
+% gurari@cse.ohio-state.edu %
+% http://www.cse.ohio-state.edu/~gurari %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\immediate\write-1{version 2005-10-23-04:19}
+
+\csname end:hyperref\endcsname
+\expandafter\ifx \csname ifHy@texht\endcsname\relax
+ \expand:after{\expandafter
+ \let \csname ifHy@texht\endcsname}\csname ifhy@texht\endcsname
+\fi
+\expandafter\ifx \csname ifHy@texht\endcsname\relax
+ \expand:after{\expandafter
+ \let \csname ifHy@texht\endcsname}\csname iffalse\endcsname
+\fi
+\ifHy@texht \else
+ \:warning{tex4ht loaded after hyperref}
+ \csname Hy@texhttrue\endcsname
+\fi
+
+\expandafter\ifx \csname ifhy@texht\endcsname\relax
+ \ifx \pdf@bbox\:UnDef
+ \pend:defIII\@setref{\edef\RefArg{##3}}
+\append:defIII\@setref{\let\:autoref\:gobble}
+\AtBeginDocument{%
+ \edef\autoref{\noexpand\protect\expandafter\noexpand
+ \csname autoref \endcsname}}
+\long\expandafter\def\csname autoref \endcsname#1{\expandafter
+ \auto@setref \csname r@#1\endcsname \@firstoffive {#1}}
+\def\auto@setref#1#2#3{\@safe@activestrue
+ \let\:autoref\::autoref
+\T@ref{#3}\@safe@activesfalse}
+\ifx\@refstar\:UnDef
+ \def\@refstar{\let\:autoref\:gobble
+\T@ref}
+\fi
+\let\:autoref\:gobble
+
+
+ \else
+ \let\:temp\real@setref
+\let\real@setref\ref
+\let\ref\o:ref
+\let\o:ref\:temp
+
+\let\end:hyperref\endinput
+\pend:defIII\@setref{\edef\RefArg{##3}}
+\append:defIII\@setref{\let\:autoref\:gobble
+}
+
+ \fi
+\else
+ \ifx \real@setref\:UnDef \else \let\o:ref\real@setref \fi
+\let\r:ref\ref
+\def\:refstar#1{\r:ref}
+\def\real@setref{\@ifnextchar*{\:refstar}{\r:ref}}
+\DeclareRobustCommand\ref{\@ifnextchar*{\@refstar}{\real@setref}}
+\def\@refstar{\real@setref}
+\def\@pagerefstar#1{%
+ \@safe@activestrue
+ \expandafter\@setref\csname r@#1\endcsname \@secondoftwo{#1}%
+ \@safe@activesfalse
+}
+\expandafter\pend:defI\csname autoref \endcsname{%
+ \let\:autoref\::autoref \edef\RefArg{##1}}
+\expandafter\append:defI\csname autoref \endcsname{%
+ \let\:autoref\:gobble}
+
+\fi
+\expandafter\ifx \csname H@item\endcsname\relax
+ \def\:temp{dvi}\ifx \XR@ext\:temp \else
+ \def\:temp{html}\ifx \XR@ext\:temp \else
+ \:warning{\string\usepackage[...]{hyperref} assumes `\XR@ext'
+ option, not `tex4ht'}
+ \fi\fi
+\else
+ \:warning{\string\usepackage[...]{hyperref} assumes `\XR@ext'
+ option, not `tex4ht'}
+\fi
+
+\ifx \@@wrindex\:UnDef \else
+ \def\@@wrindex#1|#2|#3\\{%
+ \protected@write\@indexfile{}{\string\indexentry{#1}{\thepage}}%
+ \endgroup \@esphack
+ }
+\fi
+\ifx \HyInd@@wrindex\:UnDef \else
+ \def\HyInd@@wrindex#1#2|#3|#4\\{\HyInd@org@wrindex{#1}{#2}}%
+\fi
+\ifx \Hy@RestoreLastskip\:UnDef
+ \let\Hy@RestoreLastskip\relax
+\fi
+\def\prf:label{{}{}{}}%
+\def\hyperlink#1#2{\Link{#1}{}#2\EndLink}
+\def\hypertarget#1#2{\Link{}{#1}#2\EndLink}
+\ifx \hyperpage\:UnDef \let\hyperpage=\empty \fi
+\pend:defII\setkeys{%
+ \expandafter\ifx \csname ##1:keys\endcsname\relax
+ \expandafter\def\csname ##1:keys\endcsname{##2}%
+ \else \expandafter\append:def\csname ##1:keys\endcsname{##2}%
+ \fi }
+\def\:choices#1,#2//#3#4{%
+ \def\AttributeVal{#1}#3\AttributeVal#4%
+ \def\:temp{#2}\ifx \:temp\empty \else
+ \def\:temp{\:choices#2//{#3}{#4}}\expandafter\:temp\fi}
+\def\check:args#1=#2//{\def\:temp{#2}}
+\def\arg:quote#1=#2//{%
+ \del:sp#1//%
+ \expandafter\ifx \csname a:\:form:attr ::\nosp:arg\endcsname\relax
+ \expandafter\ifx \csname a:::\nosp:arg\endcsname\relax
+ \:warning{No configuration for \:form:attr ::\nosp:arg}%
+ \else \def\AttributeVal{#2}\csname a:::\nosp:arg\endcsname
+ \fi
+ \else
+ \def\AttributeVal{#2}\csname a:\:form:attr ::\nosp:arg\endcsname
+ \fi
+ }
+\def\del:sp#1#2//{\def\nosp:arg{#1#2}}
+\def\:form:attr{\ifx\:textarea\empty
+ \default:textarea\else \:textarea\fi}
+\def\scan:args#1{\let\Attributes=\empty \let\:textarea=\empty
+ \expandafter\ifx \csname #1:keys\endcsname\relax
+ \expandafter\scan:arg
+ \else \expand:after{\expand:after
+ {\expandafter\scan:arg}\csname #1:keys\endcsname,}\fi
+}
+\def\scan:arg#1,#2//{%
+ \def\:temp{#1}\ifx \:temp\empty\else \ifx \:temp\space\else
+ \check:args#1=//%
+ \ifx \:temp\empty
+ \edef\:textarea{\ifx \:textarea\empty\else ,\fi #1}%
+ \else
+ \arg:quote#1//%
+ \fi\fi\fi
+ \def\:temp{#2}\ifx \:temp\empty \else
+ \def\:temp{\scan:arg#2//}\expandafter\:temp\fi
+}
+\def\check:type#1{\:Optionfalse
+ \def\:temp{#1}\expandafter\check:t\:textarea,//}%
+\def\check:t#1,#2//{\def\:tempa{#1}\ifx \:temp\:tempa \:Optiontrue
+ \else
+ \def\:tempa{#2}\ifx\:tempa\empty\else \def\:tempa{\check:t#2//}\fi
+ \expandafter\:tempa
+ \fi}
+
+\def\hyper@natlinkend{%
+ \hyper@linkend
+}
+\def\hyper@linkurl#1#2{%
+ \leavevmode \begingroup \hyper@chars
+ \ifx \hyper:normalise\:UnDef
+ \Hy@colorlink{\@urlcolor}#1\Hy@endcolorlink
+ \else
+ \Link[#2]{}{}\Hy@colorlink{\@urlcolor}#1\Hy@endcolorlink\EndLink
+ \global\let\hyper:normalise\:UnDef
+ \fi
+ \endgroup }
+\AtBeginDocument{%
+% \pend:defI\hyper@normalise{\let\hyper:normalise\def}%
+ \expandafter\pend:def\csname href \endcsname{\let\hyper:normalise\def}%
+ \pend:defI\T@ref{\edef\RefArg{##1}}}
+\def\label@hyperref[#1]#2{{%
+ \def\hyperrefLabel{#2}%
+ \Configure{ref}
+ {\Link}{\EndLink}{\Configure{ref}{}{}{}#2}\ref{#1}}}
+\def\@@hyperref#1#2#3{\Link[#2]{}{}#1\EndLink}
+\expandafter\ifx \csname sectionautorefname\endcsname\relax
+ \let\:temp=\def
+ \def\def#1{\expandafter
+ \ifx \csname \expandafter\:gobble\string#1\endcsname\relax
+ \expandafter\:temp\expandafter#1\else
+ \expandafter\:gobble\fi }
+ \csname Hy@captionsenglish\endcsname
+ \let\def=\:temp
+\fi
+\def\::autoref#1{%
+ \expandafter\ifx \csname #1autorefname\endcsname \relax
+ \expandafter \ifx \csname #1name\endcsname \relax
+ \else \csname #1name\endcsname~\fi
+ \else \csname #1autorefname\endcsname~\fi}
+\let\:autoref\:gobble
+
+\ifx \H@equation\:UnDef \else
+ \let\o:equation:\H@equation
+\fi
+\ifx \H@endequation\:UnDef \else
+ \let\o:endequation:\H@endequation
+\fi
+\ifx \H@eqnarray\:UnDef \else
+ \let\o:eqnarray:\H@eqnarray
+\fi
+\ifx \H@endsubeqnarray\:UnDef \else
+ \let\o:endsubeqnarray:\H@endsubeqnarray
+\fi
+\ifx \H@subeqnarray\:UnDef \else
+ \let\o:subeqnarray:\H@subeqnarray
+\fi
+\ifx \H@endsubeqnarray\:UnDef \else
+ \let\o:endsubeqnarray:\H@endsubeqnarray
+\fi
+
+\@ifpackageloaded{subfigure}{%
+ \@ifundefined{sub@label}{}{%
+ \RequirePackage{nameref}%
+}}{}
+\Configure{newlabel}
+ {\cur:th \:currentlabel}
+ {\string\csname\space
+ :autoref\string\endcsname {\@currentlabelname}#1}
+\ifx \@currentlabelname\:UnDef
+ \let\@currentlabelname\empty
+\fi
+\append:defI\refstepcounter{\def\@currentlabelname{#1}}
+\pend:def\eqnarray{\def\@currentlabelname{equation}}
+\pend:def\equation{\def\@currentlabelname{equation}}
+\ifx \figure\:UnDef \else
+ \pend:def\figure{\def\@currentlabelname{figure}}
+ \expandafter\pend:def\csname
+ figure*\endcsname{\def\@currentlabelname{figure}}
+\fi
+\pend:defII\:thm{\def\@currentlabelname{##1}}
+\ifx \part\:UnDef \else
+ \def\:temp#1->#2//{#1}
+ \def\:tempc#1{}
+ \edef\:tempc{\expandafter\:temp\meaning\:tempc//}
+ \edef\:temp{\expandafter\:temp\meaning\part//}
+ \ifx \:temp\:tempc
+ \pend:defI\part{\def\@currentlabelname{part}}
+\fi\fi
+\ifx \chapter\:UnDef \else
+ \let\NR:chapter\@chapter
+ \def\@chapter[#1]#2{%
+ \gHAdvance\:mpNum by 1
+\HAssign\minipageNum=\:mpNum \relax
+%
+ \def\@currentlabelname{\ch:autorefname}%
+ \NR:chapter[{#1}]{#2}%
+ }
+ \let\NR:schapter\@schapter
+ \def\@schapter#1{%
+ \gdef\@currentlabelname{}%
+ \NR:schapter{#1}%
+ }
+ \def\ch:autorefname{chapter}
+ \let\hy:appendix\appendix
+ \def\appendix{\def\ch:autorefname{appendix}\hy:appendix}
+\fi
+\let\NR:sect\no@sect
+\def\no@sect#1#2#3#4#5#6[#7]#8{%
+ \xdef\@currentlabelname{\ifnum #2>\c@secnumdepth\else #1\fi}%
+ \NR:sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
+}
+\let\NR:ssect\no@ssect
+\def\no@ssect#1#2#3#4#5{%
+ \gdef\@currentlabelname{}%
+ \NR:ssect{#1}{#2}{#3}{#4}{#5}%
+}
+
+\ifx \Hy@linkfileprefix\empty\else
+ \:warning{\noexpand\href of hyperref.sty introduces the prefix
+ `\Hy@linkfileprefix' to prefix-free references.
+ The command \string\hyperlinkfileprefix{...}
+ may be used for changing the prefix (probably
+ \string\hyperlinkfileprefix{}).}
+\fi
+\def\hyper@linkfile#1#2#3{\Link[#2]{#3}{}#1\EndLink}
+\def\phantomsection{%
+ \Hy@GlobalStepCount\Hy@linkcounter
+ \xdef\@currentHref{likesection.\the\Hy@linkcounter}%
+ \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
+}
+\catcode`\:=12
+\def\@hyper@readexternallink#1#2#3#4:#5:#6\\#7{%
+ \hyper@linkurl{#3}{#7\ifx\\#2\\\else\##2\fi}}
+\catcode`\:=11
+\def\@Form[#1]{%
+ \def\default:textarea{Form}%
+ \scan:args{}#1,//\a:Form }
+ \def\@endForm{\b:Form}
+ \NewConfigure{Form}{2}
+\def\@TextField[#1]#2{%
+ \def\default:textarea{TextField}%
+ \scan:args{Field}#1,//%
+ \csname a:TextField::\:textarea\endcsname \leavevmode#2%
+ \csname b:TextField::\:textarea\endcsname }
+\def\@PushButton[#1]#2{%
+ \def\default:textarea{PushButton}%
+ \scan:args{}#1,value=#2,//%
+ \csname a:PushButton::\:textarea\endcsname }
+\def\@Reset[#1]#2{%
+ \def\default:textarea{Reset}%
+ \scan:args{}#1,value=#2,//%
+ \csname a:Reset::\:textarea\endcsname }
+\def\@Submit[#1]#2{%
+ \def\default:textarea{Submit}%
+ \scan:args{}#1,value=#2,//%
+ \csname a:Submit::\:textarea\endcsname }
+\def\@CheckBox[#1]#2{%
+ \def\default:textarea{CheckBox}%
+ \scan:args{}#1,//%
+ \csname a:CheckBox::\:textarea\endcsname
+ #2\csname b:CheckBox::\:textarea\endcsname}
+\def\@ChoiceMenu[#1]#2#3{%
+ \def\default:textarea{ChoiceMenu}%
+ \scan:args{}#1,//%
+ \csname a:ChoiceMenu::\:textarea\endcsname \leavevmode#2%
+ \csname b:ChoiceMenu::\:textarea\endcsname
+ \:choices #3,//{\csname d:ChoiceMenu::\:textarea\endcsname}%
+ {\csname e:ChoiceMenu::\:textarea\endcsname}%
+ \csname c:ChoiceMenu::\:textarea\endcsname }
+
+\def\hyper@linkstart#1#2{%
+ \Hy@colorlink{\csname @#1color\endcsname}%
+ \def\Hy@tempa{#1}%
+ \ifx\Hy@tempa\@urltype
+ \Link[#2]{}{}%
+ \else
+ {\hyper@chars\ifx\rel:hyper\def\Link{#2}{}\else\Link[\##2]{}{}\fi}%
+ \fi \global\let\rel:hyper=\:UnDef
+}
+\def\hyper@linkend{%
+ \EndLink
+ \Hy@endcolorlink
+}
+\def\hyper@anchorstart#1{%
+ \Hy@SaveLastskip
+ \begingroup
+ \hyper@chars\Link{}{#1}%
+ \endgroup
+ \Hy@activeanchortrue
+}
+\def\hyper@anchorend{%
+ \EndLink
+ \Hy@activeanchorfalse
+ \Hy@RestoreLastskip
+}
+
+\expandafter\ifx\csname ifHy@hyperindex\endcsname\relax
+\else \Hy@hyperindexfalse
+\fi
+\Hinput{hyperref}
+\endinput
+