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

cvr at gnu.org.ua cvr at gnu.org.ua
Fri Oct 26 08:13:07 CEST 2012


Author: cvr
Date: 2012-10-26 09:13:06 +0300 (Fri, 26 Oct 2012)
New Revision: 97

Modified:
   trunk/lit/tex4ht-4ht.tex
Log:
Oleg Domanov odomanov at yandex.ru reported that
 tex4ht ended with an error when compiled biblatex files. 
 
 There was a superfluous \relax in the file test.tmp, line 65 which
 seemed to cause the error. 

 This was true and was a result of recent upgrades to cope up with 
 biblatex.sty revisions. The problems were primarily due to not checking
 oolatex output when biblatex.4ht was revised.
 



Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2012-10-25 07:14:04 UTC (rev 96)
+++ trunk/lit/tex4ht-4ht.tex	2012-10-26 06:13:06 UTC (rev 97)
@@ -2733,24 +2733,39 @@
 
 \let\blx at ifhyperref\@firstoftwo
 
-%\def\hyper:natanchorstart#1{\Link{}{#1}\EndLink}%  
-%\def\hyper:natlinkstart#1{\Link{#1}{}}%
-
-\def\hyper:natanchorstart#1{%
+% Oleg Domanov odomanov at yandex.ru reports:
+% tex4ht ends with an error when compiles biblatex files. I'm on
+% Windows, texlive 2012. I put here a minimal example and files
+% generated with the command latexmk test && mk4ht oolatex test
+%
+% https://www.dropbox.com/s/hn1zm40htqs13mf/t4htlink.zip
+%
+% There is a superfluous \relax in the file test.tmp, line 65 which
+% seems to cause the error. 
+%
+% Changes to cope with biblatex upgrade caused this problem. It is now
+% fixed. --CVR 2012/10/26
+% 
+\:CheckOption{ooffice}\if:Option
+ \def\hyper:natanchorstart#1{\Link{}{#1}\EndLink}%  
+ \def\hyper:natlinkstart#1{\Link{#1}{}}%
+\else
+ \def\hyper:natanchorstart#1{%
       \expandafter\ifx\csname QXpage.\thepage\endcsname\relax%
         \Tag{)Qpage.\thepage}{\file:id}%
         \HCode{<a id="page.\thepage"></a>}%
         \expandafter\xdef\csname QXpage.\thepage\endcsname{0}%
        \fi 
       \Link[\csname BibFileName\therefsection\endcsname]{}{#1}\EndLink}  
-\def\hyper:natanchorend{}
-\def\hyper:natlinkstart#1{%
+ \def\hyper:natlinkstart#1{%
       \expandafter\ifx\csname QXpage.\thepage\endcsname\relax%
         \Tag{)Qpage.\thepage}{\file:id}%
         \HCode{<a id="page.\thepage"></a>}%
         \expandafter\xdef\csname QXpage.\thepage\endcsname{0}%
        \fi 
       \Link[\csname BibFileName\therefsection\endcsname]{#1}{}}
+\fi
+\def\hyper:natanchorend{}
 \def\hyper:natlinkend{\EndLink}
 \def\writeCiteLink#1{\immediate\write\@mainaux{%
     \string\@namedef{#1.\thepage}{\FileName}}}



More information about the tex4ht-commits mailing list