summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex21
1 files changed, 19 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 2f3aa6f0e1..daac99a89e 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 972 2021-08-12 20:24:34Z michal_h21 $
+% $Id: tex4ht-4ht.tex 973 2021-08-14 10:42:30Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2021 TeX Users Group
@@ -1985,12 +1985,29 @@ old and there were no such errors previously. Anyway,
this code should try to patch ifthenelse using TeX4ht built-in
mechanism for ifthenelse.
-\<config biblatex\><<<
+We defined the hook macro depending on presence of Hyperref.
+I don't remember why, but it seems to works with Hyperref now,
+so the package condition seems unnecessary. It even produces
+an error when Hyperref is used before BibLaTeX, so I think
+we should remove it.
+
+This sections is kept here just for the future reference, the
+next section is actually used:
+\<\><<<
\@ifpackageloaded{hyperref}{}{%
\ifdefined\TE@hook\else%
\def\TE@hook{}%
\fi%
}
+>>>
+
+Define TE@hook so BibLaTeX don't try to patch ifthenelse.
+We put the hook ourselves thanks to Configure{ifthenelse}.
+
+\<config biblatex\><<<
+\ifdefined\TE@hook\else%
+\def\TE@hook{}%
+\fi%
\AtBeginDocument{%
\Configure{ifthenelse}{\TE@hook}