From eff34dbbe91326f5baa533dbd0a123cf21811867 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 2 Feb 2011 15:45:16 +0000 Subject: fixes from cvr, r81 git-svn-id: svn://tug.org/texlive/trunk@21272 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht | 31 +++++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht b/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht index e0ab5a05c7e..959b3cd8285 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/hyperref.4ht @@ -1,6 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% hyperref.4ht 2009-05-21-09:32 % +% hyperref.4ht 2011-01-30-16:01 % % Copyright (C) 1999--2009 Eitan M. Gurari % +% 2009--2011 TeX Users Group % % % % This work may be distributed and/or modified under the % % conditions of the LaTeX Project Public License, either % @@ -14,17 +15,17 @@ % This work has the LPPL maintenance status "maintained".% % % % This Current Maintainer of this work % -% is Eitan M. Gurari. % +% is the TeX4ht Project . % % % % 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 % +% tex4ht@tug.org % +% http://www.tug.org/tex4ht % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2009-05-21-09:32} +\immediate\write-1{version 2011-01-30-16:01} \csname end:hyperref\endcsname \@ifpackageloaded{nameref}{} @@ -297,6 +298,26 @@ \expandafter\:tempa \fi} +\def\Hy@MakeCurrentHref#1{% + \edef\HyperLocalCurrentHref{#1}% + \@onelevel@sanitize\HyperLocalCurrentHref + \global\let\HyperGlobalCurrentHref\HyperLocalCurrentHref + \let\HyperLocalCurrentHref\HyperGlobalCurrentHref + \ifHy@localanchorname + \let\@currentHref\HyperLocalCurrentHref + \else + \global\let\@currentHref\HyperGlobalCurrentHref + \fi +} + +\let\Hy@SectionAnchorHref\@gobble +\newlength\Hy@SectionHShift + +\def\Hy@MakeCurrentHrefAuto#1{% + \Hy@GlobalStepCount\Hy@linkcounter + \Hy@MakeCurrentHref{#1.\the\Hy@linkcounter}% +} + \def\hyper@makecurrent#1{% \begingroup \edef\Hy@param{#1}% -- cgit v1.2.3