[tex4ht-commits] [SCM] tex4ht updated: r1027 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sat Dec 11 00:22:54 CET 2021
Author: michal_h21
Date: 2021-12-10 23:22:54 +0000 (Fri, 10 Dec 2021)
New Revision: 1027
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
disable nameref from patching of \ifthenelse
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2021-12-09 14:22:08 UTC (rev 1026)
+++ trunk/lit/ChangeLog 2021-12-10 23:22:54 UTC (rev 1027)
@@ -1,3 +1,9 @@
+2021-12-11 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (ifthen.4ht, hyperref-hooks.4ht): disable Nameref from
+ patching of the \ifthenelse command.
+ https://puszcza.gnu.org.ua/bugs/?534
+
2021-12-09 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-ooffice.tex (ooffice-mml.4ht): remove spurious space after inline
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2021-12-09 14:22:08 UTC (rev 1026)
+++ trunk/lit/tex4ht-4ht.tex 2021-12-10 23:22:54 UTC (rev 1027)
@@ -5004,15 +5004,19 @@
|<load nameref in hyperref hooks|>
>>> \AddFile{9}{hyperref-hooks}
-This code introduces various issues with BibLaTeX. I've tried
-to remove it, which fixed BibLaTeX issues, but broke Nameref.
-So I reintroduce it, and will try to resolve BibLaTeX issues
-in a different way.
+We need to load Nameref here, otherwise lot of documents
+that use Hyperref fails. This caused issues with BibLaTeX,
+as both Nameref, BibLaTeX and TeX4ht redefine ifthenelse command.
+So we load explicitly the Ifthen package, let Nameref redefine it,
+and then revert to it's original definition before applying of
+TeX4ht hooks.
+
\<load nameref in hyperref hooks\><<<
\:AtEndOfPackage{%
\@ifpackageloaded{nameref}{}
{%
+ \RequirePackage{ifthen}%
\let\sv:label\label
\RequirePackage{nameref}%
\let\label\sv:label
@@ -13136,12 +13140,22 @@
% Copyright (C) |CopyYear.1997. Eitan M. Gurari %
|<TeX4ht copyright|>
+ |<fix nameref ifthen|>
|<fix ifthen|>
|<ifthen.sty shared config|>
\Hinput{ifthen}
\endinput
>>> \AddFile{7}{ifthen}
+Nameref redefines ifthenelse command, but it clashes with BibLaTeX,
+so we revert back to the original version.
+
+\<fix nameref ifthen\><<<
+\@ifpackageloaded{nameref}{%
+\let\ifthenelse\NROrg at ifthenelse%
+}{}
+>>>
+
\<fix ifthen\><<<
\long\def\:tempc{%
\let\sv:begingroup\begingroup
More information about the tex4ht-commits
mailing list.