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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Tue Oct 25 14:05:31 CEST 2022


Author: michal_h21
Date: 2022-10-25 12:05:31 +0000 (Tue, 25 Oct 2022)
New Revision: 1222

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
fixed clash between endnotes and biblatex

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-10-25 11:32:47 UTC (rev 1221)
+++ trunk/lit/ChangeLog	2022-10-25 12:05:31 UTC (rev 1222)
@@ -1,5 +1,9 @@
 2022-10-25  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (endnotes.4ht): fixed clash between Endnotes and
+	BibLaTeX.
+	https://tug.org/pipermail/tex4ht/2022q4/003274.html
+
 	* tex4ht-mathml.tex (mathml.4ht, html-mml.4ht): fixed support for
 	\hline inside the array environment.
 	https://tex.stackexchange.com/a/662845/2891

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-10-25 11:32:47 UTC (rev 1221)
+++ trunk/lit/tex4ht-4ht.tex	2022-10-25 12:05:31 UTC (rev 1222)
@@ -32740,13 +32740,24 @@
 \NewConfigure{makeenmark}{2}
 \def\enoteformat{\rightskip\z@ \leftskip\z@ \parindent=1.8em
      \leavevmode\llap{\hbox{\textsuperscript{\@theenmark}}}}
+
+\NewConfigure{theendnotes}{2}
+\NewConfigure{enoteformat}{2}
+>>>
+
+BibLaTeX patches theendnotes at begin document, and it produces
+compilation error, because it cannot find the \''\enoteformat'
+command here. We can postpone our redefinition to the moment,
+when BibLaTeX patched the command already.
+
+\<fix endnotes\><<<
+\AtBeginDocument{%
 \def\:tempc{\bgroup
    \pend:def\enoteformat{\a:enoteformat}%
    \append:def\enoteformat{\b:enoteformat}%
    \a:theendnotes \o:theendnotes: \b:theendnotes \egroup}
 \HLet\theendnotes=\:tempc
-\NewConfigure{theendnotes}{2}
-\NewConfigure{enoteformat}{2}
+}
 >>>
 
 %%%%%%%%%%%%%%%%%



More information about the tex4ht-commits mailing list.