[tex4ht-commits] [SCM] tex4ht updated: r81 - trunk/texmf/tex/generic/tex4ht

cvr at gnu.org.ua cvr at gnu.org.ua
Sun Jan 30 11:40:22 CET 2011


Author: cvr
Date: 2011-01-30 12:40:22 +0200 (Sun, 30 Jan 2011)
New Revision: 81

Modified:
   trunk/texmf/tex/generic/tex4ht/hyperref.4ht
Log:
New defenitions of \Hy at MakeCurrentHeref and allied ones became necessary 
consequent to the bug report filed by Alex Ball <a.ball at ukoln.ac.uk>. 
The bug was that hyperref.4ht failed consequent to the combination 
of memoir + hyperref deal with section headings that are below the 
numbering threshold as set by secnumdepth. Alex vouched that the 
fix worked fine with his documents.


Modified: trunk/texmf/tex/generic/tex4ht/hyperref.4ht
===================================================================
--- trunk/texmf/tex/generic/tex4ht/hyperref.4ht	2011-01-30 10:38:07 UTC (rev 80)
+++ trunk/texmf/tex/generic/tex4ht/hyperref.4ht	2011-01-30 10:40:22 UTC (rev 81)
@@ -1,7 +1,8 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% hyperref.4ht                          Version 1.1 %
+% hyperref.4ht                          2011-01-30-16:01 %
 % Copyright (C) 1999--2009       Eitan M. Gurari         %
-% Copyright 2009 TeX Users Group
+%               2009--2011       TeX Users Group         %
+%                                                        %
 % This work may be distributed and/or modified under the %
 % conditions of the LaTeX Project Public License, either %
 % version 1.3c of this license or (at your option) any   %
@@ -13,7 +14,7 @@
 %                                                        %
 % This work has the LPPL maintenance status "maintained".%
 %                                                        %
-% The Current Maintainer of this work                    %
+% This Current Maintainer of this work                   %
 % is the TeX4ht Project <tex4ht at tug.org>.                %
 %                                                        %
 % If you modify this program your changing its signature %
@@ -24,7 +25,7 @@
 %                                        tex4ht at tug.org  %
 %                             http://www.tug.org/tex4ht  %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\immediate\write-1{Version 1.1}
+\immediate\write-1{version 2011-01-30-16:01}
 
 \csname end:hyperref\endcsname
 \@ifpackageloaded{nameref}{}
@@ -297,6 +298,26 @@
        \expandafter\:tempa
    \fi}
 
+\def\Hy at MakeCurrentHref#1{%
+  \edef\HyperLocalCurrentHref{#1}%
+  \@onelevel at sanitize\HyperLocalCurrentHref
+  \global\let\HyperGlobalCurrentHref\HyperLocalCurrentHref
+  \let\HyperLocalCurrentHref\HyperGlobalCurrentHref
+  \ifHy at localanchorname
+    \let\@currentHref\HyperLocalCurrentHref
+  \else
+    \global\let\@currentHref\HyperGlobalCurrentHref
+  \fi
+}
+
+\let\Hy at SectionAnchorHref\@gobble
+\newlength\Hy at SectionHShift
+
+\def\Hy at MakeCurrentHrefAuto#1{%
+  \Hy at GlobalStepCount\Hy at linkcounter
+  \Hy at MakeCurrentHref{#1.\the\Hy at linkcounter}%
+}
+
 \def\hyper at makecurrent#1{%
   \begingroup
     \edef\Hy at param{#1}%



More information about the tex4ht-commits mailing list