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

cvr at gnu.org.ua cvr at gnu.org.ua
Thu Oct 25 09:14:05 CEST 2012


Author: cvr
Date: 2012-10-25 10:14:04 +0300 (Thu, 25 Oct 2012)
New Revision: 96

Modified:
   trunk/lit/tex4ht-4ht.tex
Log:
 <Kristian.Debrabant at cs.kuleuven.be> reported that After updating
 biblatex and biblatex.ht to versions 2.2 respectively
 2012-09-28-17:49 (using MiKTeX 2.9 64 bit), tex4ht seemed no longer
 respected the defernumbers option in biblatex.sty: When applied to
 the attached file tex4hterror.tex.

 The problem was due to nullifying \abx at aux@number which in fact
 should have been redefined to \blx at aux@number when defernumbers
 option is true.

 This is done now and as per Kristian, the fix works fine now.




Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2012-10-24 23:08:13 UTC (rev 95)
+++ trunk/lit/tex4ht-4ht.tex	2012-10-25 07:14:04 UTC (rev 96)
@@ -2600,13 +2600,39 @@
 \let\abx at aux@page\@gobbletwo
 \let\abx at aux@fnpage\@gobbletwo
 \let\abx at aux@refsection\@gobbletwo
-\def\blx at aux@number#1#2#3#4{}
-\def\abx at aux@number#1#2#3#4{}
+%
+% <Kristian.Debrabant at cs.kuleuven.be> reported that After updating
+% biblatex and biblatex.ht to versions 2.2 respectively
+% 2012-09-28-17:49 (using MiKTeX 2.9 64 bit), tex4ht seemed no longer
+% respected the defernumbers option in biblatex.sty: When applied to
+% the attached file tex4hterror.tex.
+%
+% The problem was due to nullifying \abx at aux@number which in fact
+% should have been redefined to \blx at aux@number when defernumbers
+% option is true.
+%
+% This is done now and as per Kristian, the fix works fine now.
+%
+\protected\def\blx at aux@number#1#2#3#4{%
+  \blx at bbl@addentryfield{\detokenize{#2}}{#3}{localnumber}{#4}%
+  \ifblank{#4}%
+    {}%
+    {\csgdef{blx at labelnumber@#3}{#4}%
+     %\blx at addchecksum{#1}{#4} % this can cause a nodocument error!
+     }}
+%
+\iftoggle{blx at defernumbers}%
+    {\setkeys{blx at opt@pre}{labelnumber}%
+     \let\blx at thelabelnumber\blx at addlabelnumber
+     \let\abx at aux@number\blx at aux@number}%
+    {\let\blx at thelabelnumber\relax
+     \let\abx at aux@number\@gobblefour}
+%
 \AtEndDocument{%
   \def\abx at aux@page#1#2{\blx at addpagesum{#1}{#2}}%
-  \def\abx at aux@fnpage#1#2{\blx at addpagesum{#1}{#2}}
+  \def\abx at aux@fnpage#1#2{\blx at addpagesum{#1}{#2}}%
 }
-
+%
 \def\blx at begunit{%
   \toggletrue{blx at tempa}%
   \iftoggle{blx at insert}%



More information about the tex4ht-commits mailing list