[tex4ht-commits] [SCM] tex4ht updated: r80 - trunk/lit

cvr at gnu.org.ua cvr at gnu.org.ua
Sun Jan 30 11:38:07 CET 2011


Author: cvr
Date: 2011-01-30 12:38:07 +0200 (Sun, 30 Jan 2011)
New Revision: 80

Modified:
   trunk/lit/tex4ht-4ht.tex
Log:
\<hyperref 2011-01-30\> 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
to 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/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2011-01-28 11:49:00 UTC (rev 79)
+++ trunk/lit/tex4ht-4ht.tex	2011-01-30 10:38:07 UTC (rev 80)
@@ -228,7 +228,7 @@
 
 \def\CopyYear.#1.{%
    \ifnum #1=\year #1\space\space\space\space\space\space
-    \else          #1--\the\year\fi
+    \else          #1--2009\fi
 }
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
@@ -337,6 +337,7 @@
 
 
 \<TeX4ht copyright\><<<
+%               2009--|the|year|space      TeX Users Group         %
 %                                                        %
 % This work may be distributed and/or modified under the %
 % conditions of the LaTeX Project Public License, either %
@@ -3253,6 +3254,7 @@
 |<autoref 2008|>
 |<tex4ht option on hyperrref|>
 |<hyperref utils|>
+|<hyperref 2011-01-30|>
 |<config hyperref|>
 |<htex4ht.def|>
 \expandafter\ifx\csname ifHy at hyperindex\endcsname\relax
@@ -3262,7 +3264,37 @@
 \endinput
 >>>        \AddFile{7}{hyperref}
 
+% CVR 2011-01-29
 
+The following modification become 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. 
+
+\<hyperref 2011-01-30\><<<
+\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}%
+}
+>>>
+
 \<config hyperref\><<<
 \def\hyper at makecurrent#1{% 
   \begingroup 



More information about the tex4ht-commits mailing list