texlive[66878] Master/texmf-dist/tex/hitex/base/hhitex.def: HINT:

commits+mruckert at tug.org commits+mruckert at tug.org
Tue Apr 18 15:27:23 CEST 2023


Revision: 66878
          http://tug.org/svn/texlive?view=revision&revision=66878
Author:   mruckert
Date:     2023-04-18 15:27:23 +0200 (Tue, 18 Apr 2023)
Log Message:
-----------
HINT: adding driver hhitex.def for hyperref package

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/hitex/base/hhitex.def

Added: trunk/Master/texmf-dist/tex/hitex/base/hhitex.def
===================================================================
--- trunk/Master/texmf-dist/tex/hitex/base/hhitex.def	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/hitex/base/hhitex.def	2023-04-18 13:27:23 UTC (rev 66878)
@@ -0,0 +1,343 @@
+%%% Preliminary Draft for testing
+%%
+%% This is file `hhitex.def',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% hyperref.dtx  (with options: `pdftex,pdfform,outlines')
+%% 
+%% 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{hhitex.def}
+  [2022-09-22 v7.00t %
+  Hyperref driver for hiTeX]
+
+\chardef\Hy at VersionChecked=1 % prevent hyperref from checking the version.
+
+\ifHy at pdfpagelabels
+  \def\HyPL at StorePageLabel#1{%
+    \toks@\expandafter{\HyPL at Labels}%
+    \xdef\HyPL at Labels{%
+      \the\toks@
+      \the\Hy at abspage<<#1>>%
+    }%
+  }%
+%  \RequirePackage{atveryend}[2009/12/07]%
+%  \AtVeryEndDocument{%
+%    \HyPL at SetPageLabels
+%  }%
+\fi
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname pdf at escapestring\endcsname\relax
+  \begingroup
+    \catcode`\|=0 %
+    \@makeother\\%
+  |@firstofone{|endgroup
+    |def|Hy at pstringdef#1#2{%
+      |begingroup
+        |edef~{|string~}%
+        |xdef|Hy at gtemp{#2}%
+      |endgroup
+      |let#1|Hy at gtemp
+      |@onelevel at sanitize#1%
+      |edef#1{|expandafter|Hy at ExchangeBackslash#1\|@nil}%
+      |edef#1{|expandafter|Hy at ExchangeLeftParenthesis#1(|@nil}%
+      |edef#1{|expandafter|Hy at ExchangeRightParenthesis#1)|@nil}%
+    }%
+    |def|Hy at ExchangeBackslash#1\#2|@nil{%
+      #1%
+      |ifx|\#2|\%%
+      |else
+        \\%
+        |ltx at ReturnAfterFi{%
+          |Hy at ExchangeBackslash#2|@nil
+        }%
+      |fi
+    }%
+  }%
+  \def\Hy at ExchangeLeftParenthesis#1(#2\@nil{%
+    #1%
+    \ifx\\#2\\%
+    \else
+      \@backslashchar(%
+      \ltx at ReturnAfterFi{%
+        \Hy at ExchangeLeftParenthesis#2\@nil
+      }%
+    \fi
+  }%
+  \def\Hy at ExchangeRightParenthesis#1)#2\@nil{%
+    #1%
+    \ifx\\#2\\%
+    \else
+      \@backslashchar)%
+      \ltx at ReturnAfterFi{%
+        \Hy at ExchangeRightParenthesis#2\@nil
+      }%
+    \fi
+  }%
+\else
+  \def\Hy at pstringdef#1#2{%
+    \begingroup
+      \edef~{\string~}%
+      \xdef\Hy at gtemp{\pdf at escapestring{#2}}%
+    \endgroup
+    \let#1\Hy at gtemp
+  }%
+\fi
+\providecommand*{\XR at ext}{pdf}
+\Hy at setbreaklinks{true}
+\def\HyPat at ObjRef{%
+  [0-9]*[1-9][0-9]* 0 R%
+}
+
+\def\setpdflinkmargin#1{}%????
+\def\Hy at PutCatalog{}
+\Hy at WrapperDef\new at pdflink#1{%
+  \ifhmode
+    \@savsf\spacefactor
+  \fi
+  \Hy at SaveLastskip
+  \Hy at VerboseAnchor{#1}%
+  \Hy at pstringdef\Hy at pstringDest{\HyperDestNameFilter{#1}}%
+  \Hy at DestName\Hy at pstringDest\@pdfview
+  \Hy at RestoreLastskip
+  \ifhmode
+    \spacefactor\@savsf
+  \fi
+}
+\let\pdf at endanchor\@empty
+\def\Hy at DestName#1#2{%
+  \HINTdest name {#1}\relax
+}
+\providecommand*\@pdfborder{0 0 1}
+\providecommand*\@pdfborderstyle{}
+\def\Hy at undefinedname{UNDEFINED}
+\def\find at pdflink#1#2{%
+  \leavevmode
+  \protected at edef\Hy at testname{#2}%
+  \ifx\Hy at testname\@empty
+    \Hy at Warning{%
+      Empty destination name,\MessageBreak
+      using `\Hy at undefinedname'%
+    }%
+    \let\Hy at testname\Hy at undefinedname
+  \else
+    \Hy at pstringdef\Hy at testname{%
+      \expandafter\HyperDestNameFilter\expandafter{\Hy at testname}%
+    }%
+  \fi
+  \Hy at StartlinkName{%
+    %\ifHy at pdfa /F 4\fi
+%    \Hy at setpdfborder
+%    \Hy at setpdfhighlight
+%    \ifx\CurrentBorderColor\relax
+%    \else
+%      /C[\CurrentBorderColor]%
+%    \fi
+  }\Hy at testname
+  \expandafter\Hy at colorlink\csname @#1color\endcsname
+}
+\def\Hy at StartlinkName#1#2{%
+  \HINTstartlink goto name{#2}\relax
+}
+\def\close at pdflink{%
+  \Hy at endcolorlink
+  \Hy at VerboseLinkStop
+  \HINTendlink
+}
+\def\hyper at anchor#1{%
+  \new at pdflink{#1}\anchor at spot\pdf at endanchor
+}
+\def\hyper at anchorstart#1{%
+  \new at pdflink{#1}%
+  \Hy at activeanchortrue
+}
+\def\hyper at anchorend{%
+  \pdf at endanchor
+  \Hy at activeanchorfalse
+}
+\def\hyper at linkstart#1#2{%
+  \Hy at VerboseLinkStart{#1}{#2}%
+  \ltx at IfUndefined{@#1bordercolor}{%
+    \let\CurrentBorderColor\relax
+  }{%
+    \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
+  }%
+  \find at pdflink{#1}{#2}%
+}
+\def\hyper at linkend{\close at pdflink}
+\def\hyper at link#1#2#3{%
+  \Hy at VerboseLinkStart{#1}{#2}%
+  \ltx at IfUndefined{@#1bordercolor}{%
+    \let\CurrentBorderColor\relax
+  }{%
+    \edef\CurrentBorderColor{\csname @#1bordercolor\endcsname}%
+  }%
+  \find at pdflink{#1}{#2}#3\Hy at xspace@end
+  \close at pdflink
+}
+\let\CurrentBorderColor\@linkbordercolor
+\def\hyper at linkurl#1#2{}%
+\def\hyper at linkfile#1#2#3{}% anchor text, filename, linkname
+\def\@hyper at launch run:#1\\#2#3{}% filename, anchor text linkname
+\def\PDF at SetupDoc{}
+\def\PDF at FinishDoc{}%
+ 
+
+\def\Hy at writebookmark#1#2#3#4#5{%
+    % section number, text, label, level, file
+  \ifx\WriteBookmarks\relax%
+  \else
+     \HINToutline goto name{#3} depth #4 {#2}%
+  \fi
+}
+\def\Hy at currentbookmarklevel{0}
+\def\Hy at numberline#1{#1 }
+\def\Hy at OutlineRerunCheck{}
+\def\ReadBookmarks{}
+\def\Hy at OutlineName#1#2#3#4{}
+\ifHy at implicit
+\else
+  \expandafter\endinput
+\fi
+\newlength\Hy at SectionHShift
+\def\Hy at SectionAnchorHref#1{%
+  \ifx\protect\@typeset at protect
+    \Hy@@SectionAnchor{#1}%
+  \fi
+}
+\DeclareRobustCommand*{\Hy@@SectionAnchor}[1]{%
+  \leavevmode
+  \hbox to 0pt{%
+    \kern-\Hy at SectionHShift
+    \Hy at raisedlink{%
+      \hyper at anchorstart{#1}\hyper at anchorend
+    }%
+    \hss
+  }%
+}
+\@ifundefined{hyper at nopatch@sectioning}
+{
+\let\H at old@ssect\@ssect
+\def\@ssect#1#2#3#4#5{%
+  \Hy at MakeCurrentHrefAuto{section*}%
+  \setlength{\Hy at SectionHShift}{#1}%
+  \begingroup
+    \toks@{\H at old@ssect{#1}{#2}{#3}{#4}}%
+    \toks\tw@\expandafter{%
+      \expandafter\Hy at SectionAnchorHref\expandafter{\@currentHref}%
+      #5%
+    }%
+  \edef\x{\endgroup
+    \the\toks@{\the\toks\tw@}%
+  }\x
+}
+\let\H at old@schapter\@schapter
+\def\@schapter#1{%
+  \begingroup
+    \let\@mkboth\@gobbletwo
+    \Hy at MakeCurrentHrefAuto{\Hy at chapapp*}%
+    \Hy at raisedlink{%
+      \hyper at anchorstart{\@currentHref}\hyper at anchorend
+    }%
+  \endgroup
+  \H at old@schapter{#1}%
+}
+\ltx at IfUndefined{@chapter}{}{%
+  \let\Hy at org@chapter\@chapter
+  \def\@chapter{%
+    \def\Hy at next{%
+      \Hy at MakeCurrentHrefAuto{\Hy at chapapp*}%
+      \Hy at raisedlink{%
+        \hyper at anchorstart{\@currentHref}\hyper at anchorend
+      }%
+    }%
+    \ifnum\c at secnumdepth>\m at ne
+      \ltx at IfUndefined{if at mainmatter}%
+      \iftrue{\csname if at mainmatter\endcsname}%
+        \let\Hy at next\relax
+      \fi
+    \fi
+    \Hy at next
+    \Hy at org@chapter
+  }%
+}
+\let\H at old@part\@part
+\@ifundefined{chapter}
+  {\let\Hy at secnum@part\z@}
+  {\let\Hy at secnum@part\m at ne}
+\def\@part{%
+  \ifnum\Hy at secnum@part>\c at secnumdepth
+    \phantomsection
+  \fi
+  \H at old@part
+}
+\let\H at old@spart\@spart
+\def\@spart#1{%
+  \Hy at MakeCurrentHrefAuto{part*}%
+  \Hy at raisedlink{%
+    \hyper at anchorstart{\@currentHref}\hyper at anchorend
+  }%
+  \H at old@spart{#1}%
+}
+\let\H at old@sect\@sect
+\def\@sect#1#2#3#4#5#6[#7]#8{%
+  \ifnum #2>\c at secnumdepth
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi
+  {%
+    \Hy at MakeCurrentHrefAuto{section*}%
+    \setlength{\Hy at SectionHShift}{#3}%
+    \begingroup
+      \toks@{\H at old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]}%
+      \toks\tw@\expandafter{%
+        \expandafter\Hy at SectionAnchorHref\expandafter{\@currentHref}%
+        #8%
+      }%
+    \edef\x{\endgroup
+      \the\toks@{\the\toks\tw@}%
+    }\x
+  }{%
+    \H at old@sect{#1}{#2}{#3}{#4}{#5}{#6}[{#7}]{#8}%
+  }%
+}
+}{}
+\expandafter\def\csname Parent-4\endcsname{}
+\expandafter\def\csname Parent-3\endcsname{}
+\expandafter\def\csname Parent-2\endcsname{}
+\expandafter\def\csname Parent-1\endcsname{}
+\expandafter\def\csname Parent0\endcsname{}
+\expandafter\def\csname Parent1\endcsname{}
+\expandafter\def\csname Parent2\endcsname{}
+\expandafter\def\csname Parent3\endcsname{}
+\expandafter\def\csname Parent4\endcsname{}
+\endinput
+%%
+%% End of file `hpdftex.def'.


Property changes on: trunk/Master/texmf-dist/tex/hitex/base/hhitex.def
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


More information about the tex-live-commits mailing list.